Skip to content

Commit

Permalink
Simplify call to the API from the dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Fgerthoffert committed Nov 7, 2016
1 parent 0b67758 commit d992927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Symfony/3.0/src/AppBundle/Services/StatusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ public function getSourcesStatus() {
}
$userSources[$idx]['disk']['Free'] = $userSources[$idx]['disk']['Total'] - $this->sourcesService->getSourceDirectorySize($sourceConfig['SOURCEID']);

$userSources[$idx]['history']['size'] = array_reverse($this->statsService->getSourcesDiskUsage($sourceConfig['SOURCEID'], 15));
$userSources[$idx]['history']['count'] = array_reverse($this->statsService->getSourcesPicturesCountSize($sourceConfig['SOURCEID'], 15));
//$userSources[$idx]['history']['size'] = array_reverse($this->statsService->getSourcesDiskUsage($sourceConfig['SOURCEID'], 15));
//$userSources[$idx]['history']['count'] = array_reverse($this->statsService->getSourcesPicturesCountSize($sourceConfig['SOURCEID'], 15));

}
return $userSources;
Expand Down

0 comments on commit d992927

Please sign in to comment.