From de5f41c6c55ec4781e595f3d30cc0acb5ccf92bb Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 6 Sep 2014 15:39:20 -0400 Subject: [PATCH] Duration - Cleaned up source formatting. --- src/Duration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Duration.cpp b/src/Duration.cpp index 1c766f05f..1e0dc1f3b 100644 --- a/src/Duration.cpp +++ b/src/Duration.cpp @@ -209,10 +209,10 @@ std::string Duration::formatCompact () const if (_secs >= 86400 * 365) sprintf (formatted, "%.1fy", (days / 365.0)); else if (_secs >= 86400 * 84) sprintf (formatted, "%1dmo", (int) (days / 30)); - else if (_secs >= 86400 * 13) sprintf (formatted, "%dw", (int) (float) (days / 7.0)); + else if (_secs >= 86400 * 13) sprintf (formatted, "%dw", (int) (float) (days / 7.0)); else if (_secs >= 86400) sprintf (formatted, "%dd", (int) days); else if (_secs >= 3600) sprintf (formatted, "%dh", (int) (_secs / 3600)); - else if (_secs >= 60) sprintf (formatted, "%dmin", (int) (_secs / 60)); + else if (_secs >= 60) sprintf (formatted, "%dmin", (int) (_secs / 60)); else if (_secs >= 1) sprintf (formatted, "%ds", (int) _secs); else formatted[0] = '\0';