From f38ae165bd211667cae2c2de9bd9697c088876ac Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 24 Feb 2014 16:52:49 +0100 Subject: ultrastace: Timestamps --- useful/ultrastrace.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'useful') 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; -- cgit v1.2.3-55-g7522