Now is possible to print multiple gauge graphs without errors
Fixes ticket #3635
This commit is contained in:
parent
a188c96f3f
commit
98dc56f71a
|
@ -1467,7 +1467,6 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
break;
|
||||
case CUSTOM_GRAPH_GAUGE:
|
||||
$datelimit = $date - $period;
|
||||
$i = 0;
|
||||
foreach ($module_list as $module) {
|
||||
$temp[$module] = modules_get_agentmodule($module);
|
||||
$temp_data = db_get_value_sql('SELECT datos
|
||||
|
@ -1503,8 +1502,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_');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue