summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-08-23 16:50:33 +0200
committerUrban Müller2017-08-23 16:50:33 +0200
commit305a37b61ff3b003681e25fabca4b4af008edee6 (patch)
tree8cf1ab77374b8752c0c254316ce7685c9ffd81ae /it.class
parent11f3921d48ca48a9e9da84a4822583a3ca34df43 (diff)
downloaditools-305a37b61ff3b003681e25fabca4b4af008edee6.tar.gz
itools-305a37b61ff3b003681e25fabca4b4af008edee6.tar.bz2
itools-305a37b61ff3b003681e25fabca4b4af008edee6.zip
indicate runtime
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 2407b5b..2d233e6 100644
--- a/it.class
+++ b/it.class
@@ -250,7 +250,7 @@ static function error($p = array())
$body .= "Host: " . getenv('HOSTNAME') . "\n\n";
$body .= $p['id'] ? "Filter: timewindow=" . $p['graceperiod'] . "-" . ($p['graceperiod'] + $p['timewindow']) . "\n\n" : "";
- $body .= "Time: " . date("Y-m-d H:i:s") . "\n\n"; # no it::date() because of time- debug param
+ $body .= "Time: " . date("Y-m-d H:i:s") . (($t = time() - $_SERVER['REQUEST_TIME']) ? " (started {$t}s before)" : "") . "\n\n"; # no it::date() due to time- debug param
$body .= "Overview: ssh " . getenv('HOSTNAME') . " 'tail -100000 /tmp/alertdata/alert.log | grep \"$trace\"'\n\n";
$body .= $_GET ? "\$_GET: " . var_export($_GET, true) . "\n\n" : "";
$body .= $_POST ? "\$_POST: " . var_export($_POST, true) . "\n\n" : "";