diff options
author | Simon Rettberg | 2014-02-24 16:52:49 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-02-24 16:52:49 +0100 |
commit | f38ae165bd211667cae2c2de9bd9697c088876ac (patch) | |
tree | f4b588e6a2c3ef8f9a51d8283297bfd447bcc1ea /useful | |
parent | [openslx] Check if mksquashfs supports xz, fall back to default compression i... (diff) | |
download | tm-scripts-f38ae165bd211667cae2c2de9bd9697c088876ac.tar.gz tm-scripts-f38ae165bd211667cae2c2de9bd9697c088876ac.tar.xz tm-scripts-f38ae165bd211667cae2c2de9bd9697c088876ac.zip |
ultrastace: Timestamps
Diffstat (limited to 'useful')
-rwxr-xr-x | useful/ultrastrace.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/useful/ultrastrace.php b/useful/ultrastrace.php index 0caaf64a..3c93f1cc 100755 --- a/useful/ultrastrace.php +++ b/useful/ultrastrace.php @@ -35,8 +35,9 @@ foreach ($argv as $fname) { $time = parseTime($out); if (isset($lastLine)) { if ($time < $lastTime) $lastTime -= 86400; - if ($lastTime + 2 < $time) { - echo "\n------------- Delay detected in $fname at line $lineNo:\n$lastLine$line"; + $delay = (int)($time - $lastTime); + if ($delay > 3) { + echo "\n------------- $delay s Delay detected in $fname at line $lineNo:\n$lastLine$line"; } } $lastLine = $line; |