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
diff options
context:
space:
mode:
-rw-r--r--backgroundjobs/computestatistics.php6
-rw-r--r--js/script.js2
-rw-r--r--templates/part.content.php2
3 files changed, 8 insertions, 2 deletions
diff --git a/backgroundjobs/computestatistics.php b/backgroundjobs/computestatistics.php
index 6aa2b06..4d98cd7 100644
--- a/backgroundjobs/computestatistics.php
+++ b/backgroundjobs/computestatistics.php
@@ -192,6 +192,12 @@ class ComputeStatistics extends TimedJob {
}
}
+ $max = $statistics['files'];
+
+ foreach ($statistics as $key => $value) {
+ $statistics[$key] = 100/$max*$value;
+ }
+
return $statistics;
}
diff --git a/js/script.js b/js/script.js
index 33039a1..6b029b7 100644
--- a/js/script.js
+++ b/js/script.js
@@ -79,7 +79,7 @@
labels: appLabels,
datasets: [
{
- label: "Enabled Apps",
+ label: "Enabled Apps (in %)",
fillColor: "rgba(151,187,205,0.5)",
strokeColor: "rgba(151,187,205,0.8)",
highlightFill: "rgba(151,187,205,0.75)",
diff --git a/templates/part.content.php b/templates/part.content.php
index 235f4bd..dbaa156 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -28,7 +28,7 @@
</div>
<div class="section" id="enabledApps">
- <h1>Enabled Apps</h1>
+ <h1>Enabled Apps (in % of installations)</h1>
<canvas id="appChart" width="800" height="400"></canvas>
</div>