Now is possible to print multiple gauge graphs without errors

Fixes ticket #3635
This commit is contained in:
Alejandro Gallardo Escobar 2016-05-17 15:35:26 +02:00
parent 23fd308953
commit e47f6d9968
1 changed files with 2 additions and 3 deletions

View File

@ -1609,9 +1609,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
$temp[$module]['min'] = ($min == 0 ) ? 0 : $min;
$temp[$module]['max'] = ($max == 0 ) ? 100 : $max;
}
$temp[$module]['gauge'] = "gauge_" . $i;
$i++;
$temp[$module]['gauge'] = uniqid('gauge_');
if ($config['metaconsole']) {
// Automatic custom graph from the report template in metaconsole
@ -1619,6 +1617,7 @@ function graphic_combined_module ($module_list, $weight_list, $period,
metaconsole_restore_db();
}
}
$i++;
}
break;
default: