added check for partial empty summaries, disabled
parent
1c84e1d74a
commit
6c78358ab7
10
draw.php
10
draw.php
|
|
@ -130,7 +130,15 @@ function generateChart($today,$mode,$hours=0,$dateInput){
|
||||||
$date_array=array('year'=>$year,'month'=>$month,'day'=>$day);
|
$date_array=array('year'=>$year,'month'=>$month,'day'=>$day);
|
||||||
|
|
||||||
$summary=$db->select('summary','*',$date_array,'ORDER BY id DESC');
|
$summary=$db->select('summary','*',$date_array,'ORDER BY id DESC');
|
||||||
if($summary===false ||isset($_GET['totalforce'])){
|
$recentSummary=true;
|
||||||
|
# uncomment to activate rebuild
|
||||||
|
#foreach($types as $tmp){
|
||||||
|
# if($tmp=$types[1]){
|
||||||
|
# continue;
|
||||||
|
# }
|
||||||
|
# $recentSummary=($summary[0][$tmp.'-min-time'] > 0) && $recentSummary;
|
||||||
|
#}
|
||||||
|
if($summary===false ||isset($_GET['totalforce']) || ! $recentSummary){
|
||||||
//stats are not in db, generate new, also redraw graph
|
//stats are not in db, generate new, also redraw graph
|
||||||
$forceRedraw=true;
|
$forceRedraw=true;
|
||||||
$db->delete('summary',$date_array);//avoid multiple (outdated) entries
|
$db->delete('summary',$date_array);//avoid multiple (outdated) entries
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue