From 75c809381af30cec5f7f1643edaf0a1f4b1678ce Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 21 Oct 2015 16:26:31 +0900 Subject: [PATCH] TimeString format: Return micro time if all other data is emtpy If micro time is off, but we have no other data, then return the micro time or 0 ms if none --- www/libs/Class.Basic.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/libs/Class.Basic.inc b/www/libs/Class.Basic.inc index d6cc09a3..d0547d0e 100644 --- a/www/libs/Class.Basic.inc +++ b/www/libs/Class.Basic.inc @@ -1058,6 +1058,8 @@ // add ms if there if ($show_micro) $time_string .= ' '.(!$ms ? 0 : $ms).'ms'; + elseif (!$time_string) + $time_string .= (!$ms ? 0 : $ms).'ms'; } else {