Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/survey_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-18 15:59:46 +0300
committerJoas Schilling <coding@schilljs.com>2016-10-18 15:59:46 +0300
commit07e125bdceb2e714f8ba34351689c4388195b299 (patch)
tree7b32a2115530ed60ef5aecd88222fee4b94e50a6 /lib
parent7599f2eea2885bd50d55c22ca8151ca12f433d1d (diff)
Make app stats usable again
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/BackgroundJobs/ComputeStatistics.php8
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);