From: Soeren Apel Date: Sun, 23 Aug 2015 12:20:59 +0000 (+0200) Subject: Util: Fix malformed time formatting X-Git-Tag: pulseview-0.3.0~137 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=ca810a8ce1f0257e78ad00bc8f794c68f7438cad;p=pulseview.git Util: Fix malformed time formatting --- 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',