mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-08-14 06:18:40 +02:00
Fixed interval when the period is less than resolution in custom graph
This commit is contained in:
parent
3bc4bdb798
commit
0b728375db
@ -1162,6 +1162,9 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
||||
$datelimit = $date - $period;
|
||||
|
||||
$resolution = $config['graph_res'] * 50; //Number of points of the graph
|
||||
if($resolution > $period){
|
||||
$resolution = $period;
|
||||
}
|
||||
$interval = (int) ($period / $resolution);
|
||||
|
||||
// If projection graph, fill with zero previous data to projection interval
|
||||
|
Loading…
x
Reference in New Issue
Block a user