summaryrefslogtreecommitdiffstats
path: root/useful
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-24 16:52:49 +0100
committerSimon Rettberg2014-02-24 16:52:49 +0100
commitf38ae165bd211667cae2c2de9bd9697c088876ac (patch)
treef4b588e6a2c3ef8f9a51d8283297bfd447bcc1ea /useful
parent[openslx] Check if mksquashfs supports xz, fall back to default compression i... (diff)
downloadtm-scripts-f38ae165bd211667cae2c2de9bd9697c088876ac.tar.gz
tm-scripts-f38ae165bd211667cae2c2de9bd9697c088876ac.tar.xz
tm-scripts-f38ae165bd211667cae2c2de9bd9697c088876ac.zip
ultrastace: Timestamps
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;