From ca810a8ce1f0257e78ad00bc8f794c68f7438cad Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 23 Aug 2015 14:20:59 +0200 Subject: [PATCH 1/1] Util: Fix malformed time formatting --- pv/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pv/util.cpp b/pv/util.cpp index 133317e0..029ae079 100644 --- a/pv/util.cpp +++ b/pv/util.cpp @@ -119,7 +119,7 @@ static QString format_time_in_full(double t, signed precision, bool force_sign) if (precision >= 0) { ts << pad_number(seconds, use_padding ? 2 : 0); - const double fraction = fabs(t - whole_seconds); + const double fraction = fabs(t) - whole_seconds; if (precision > 0 && precision < 1000) { QString fs = QString("%1").arg(fraction, -(2 + precision), 'f', -- 2.30.2