Properly handle 0 seconds in secondsToString()
authorMichael Marley <michael@michaelmarley.com>
Sat, 2 Jul 2016 14:20:58 +0000 (10:20 -0400)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 28 Feb 2018 22:23:48 +0000 (23:23 +0100)
commit5dbf544a08ef96a933d61ffa3b7bc711ebdab244
treedfd17854327ccee121a24df0de700b5facd77116
parentfa2b53c2a77d8fcae8e12d358465d6e3786769ca
Properly handle 0 seconds in secondsToString()

Previously if 0 seconds was passed in, an empty string would be
returned.  Instead, "0 sec" should be returned.

Resolves GH-223.

(cherry picked from commit 757dc75aada1e4c5077cf46969f6422bffa08ce3)
src/common/util.cpp