diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-18 15:59:46 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-18 15:59:46 +0300 |
commit | 07e125bdceb2e714f8ba34351689c4388195b299 (patch) | |
tree | 7b32a2115530ed60ef5aecd88222fee4b94e50a6 /lib | |
parent | 7599f2eea2885bd50d55c22ca8151ca12f433d1d (diff) |
Make app stats usable again
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/BackgroundJobs/ComputeStatistics.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/BackgroundJobs/ComputeStatistics.php b/lib/BackgroundJobs/ComputeStatistics.php index b9d8485..7ab0518 100644 --- a/lib/BackgroundJobs/ComputeStatistics.php +++ b/lib/BackgroundJobs/ComputeStatistics.php @@ -236,9 +236,15 @@ class ComputeStatistics extends TimedJob { } $max = $statistics['survey_client']; + $apps = \OC::$server->getAppManager()->getAlwaysEnabledApps(); + $apps = array_flip($apps); foreach ($statistics as $key => $value) { - $statistics[$key] = 100/$max*$value; + if (!isset($apps[$key])) { + $statistics[$key] = $value; + } else { + unset($statistics[$key]); + } } arsort($statistics); |