From d27934656aa5f005e7a2a9611edae1cfd775dc2c Mon Sep 17 00:00:00 2001 From: Cassio de Campos Date: Mon, 31 Jul 2017 18:55:08 +0100 Subject: bfs --- src/frun.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/frun.php b/src/frun.php index 9cf4bf9..81e3824 100644 --- a/src/frun.php +++ b/src/frun.php @@ -728,9 +728,6 @@ function DBNewRun($param,$c=null) { $oid2 = $lr['autostderr']; } $runinc = $runnumber - 1; - // if($updatetime > $t) { - //DBExec($c, "update sitetable set sitenextrun=$runnumber" . - // " where sitenumber=$site and contestnumber=$contest and sitenextrun<$runnumber", "DBNewRun(update site)"); } else { $runnumber = $a["nextrun"] + 1; DBExec($c, "update sitetable set sitenextrun=$runnumber" . @@ -759,6 +756,8 @@ function DBNewRun($param,$c=null) { $dif = $rundatediff; } + if($updatetime > $t || $insert) { + // LOGError($autostdout); if(substr($autostdout,0,7)=="base64:") { $autostdout = base64_decode(substr($autostdout,7)); -- cgit v1.2.3