From 305a37b61ff3b003681e25fabca4b4af008edee6 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 23 Aug 2017 16:50:33 +0200 Subject: indicate runtime --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" : ""; -- cgit v1.2.3