Now the 'avg_only' option is enabled by default for the metaconsole users

This commit is contained in:
Alejandro Gallardo Escobar 2015-03-25 19:20:48 +01:00
parent 3b06988082
commit 08d93c8b28
3 changed files with 3 additions and 0 deletions

View File

@ -1344,6 +1344,7 @@ class Tree {
); );
if (defined('METACONSOLE') && !empty($server)) { if (defined('METACONSOLE') && !empty($server)) {
$graph_params["avg_only"] = 1;
// Set the server id // Set the server id
$graph_params["server"] = $module['serverID']; $graph_params["server"] = $module['serverID'];
} }

View File

@ -2081,6 +2081,7 @@ function events_page_details ($event, $server = "") {
); );
if (defined('METACONSOLE')) { if (defined('METACONSOLE')) {
$graph_params["avg_only"] = 1;
// Set the server id // Set the server id
$graph_params["server"] = $server["id"]; $graph_params["server"] = $server["id"];
} }

View File

@ -1229,6 +1229,7 @@ foreach ($result as $row) {
); );
if (defined('METACONSOLE') && isset($row["server_id"])) { if (defined('METACONSOLE') && isset($row["server_id"])) {
$graph_params["avg_only"] = 1;
// Set the server id // Set the server id
$graph_params["server"] = $row["server_id"]; $graph_params["server"] = $row["server_id"];
} }