summaryrefslogtreecommitdiffstats
path: root/useful
diff options
context:
space:
mode:
Diffstat (limited to 'useful')
-rwxr-xr-xuseful/ultrastrace.php5
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;