From: Mischa POSLAWSKY Date: Fri, 14 Apr 2017 09:21:43 +0000 (+0200) Subject: common: hide empty debug time X-Git-Tag: v1.10~135 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/ec0363c510a8c9ee62a0d0558696d5a923bb997f?hp=c0cc7ea9c5b3a270b1b594a682b0e71b9e500dcf common: hide empty debug time Avoid epoch value if start hasn't been set for whatever reason. --- diff --git a/common.inc.plp b/common.inc.plp index cd218ef..31c2c22 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -159,7 +159,7 @@ sub Html { AGPLv3 EOT - say sprintf '• %.3fs', Time::HiRes::tv_interval($Time) if $Dev; + say sprintf '• %.3fs', Time::HiRes::tv_interval($Time) if $Dev and $Time; say '

'; say ''; say '';