From ef4bcb874d5505ff73195d6f011e64ee6ba0d75b Mon Sep 17 00:00:00 2001 From: ak4t0sh Date: Mon, 15 Sep 2014 15:56:48 +0200 Subject: [PATCH] set graph_period to 5 minutes + text changes in graph config --- plugins/moodle/moodle_users_total.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/moodle/moodle_users_total.php b/plugins/moodle/moodle_users_total.php index 6182454d..7ac7585e 100644 --- a/plugins/moodle/moodle_users_total.php +++ b/plugins/moodle/moodle_users_total.php @@ -32,13 +32,14 @@ $table_prefix = getenv('table_prefix'); $port = getenv('port'); if (!$port) $port = 3306; -$graph_period = getenv('graph_period'); +//$graph_period = getenv('graph_period'); +$graph_period = time() - 5*60; if (count($argv) === 2 && $argv[1] === 'config') { echo "graph_title Moodle Total Users\n"; echo "graph_args --base 1000 --lower-limit 0\n"; - echo "graph_vlabel Total Users Count / ${graph_period}\n"; + echo "graph_vlabel users\n"; echo "graph_category Moodle\n"; echo "graph_scale no\n"; echo "graph_info Displays the sum of users, as well as active, suspended and deleted accounts, in your Moodle site\n";