enabled check for summaries, fixing #2
parent
6c78358ab7
commit
3b3cec391d
13
draw.php
13
draw.php
|
|
@ -131,13 +131,12 @@ function generateChart($today,$mode,$hours=0,$dateInput){
|
||||||
|
|
||||||
$summary=$db->select('summary','*',$date_array,'ORDER BY id DESC');
|
$summary=$db->select('summary','*',$date_array,'ORDER BY id DESC');
|
||||||
$recentSummary=true;
|
$recentSummary=true;
|
||||||
# uncomment to activate rebuild
|
foreach($types as $tmp){
|
||||||
#foreach($types as $tmp){
|
if($tmp=$types[1]){
|
||||||
# if($tmp=$types[1]){
|
continue;
|
||||||
# continue;
|
}
|
||||||
# }
|
$recentSummary=($summary[0][$tmp.'-min-time'] > 0) && $recentSummary;
|
||||||
# $recentSummary=($summary[0][$tmp.'-min-time'] > 0) && $recentSummary;
|
}
|
||||||
#}
|
|
||||||
if($summary===false ||isset($_GET['totalforce']) || ! $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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue