summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-04 06:17:27 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-04 06:17:27 +0200
commit93e76a2221e452eb2c283eb1cf7000a9cfab1029 (patch)
tree0520621068a30773c8373b55a2085c187433ae91
parent1e39ae52c510609fd50adc6ba3d7440b79ac3e33 (diff)
downloadnncmpp-93e76a2221e452eb2c283eb1cf7000a9cfab1029.tar.gz
nncmpp-93e76a2221e452eb2c283eb1cf7000a9cfab1029.tar.xz
nncmpp-93e76a2221e452eb2c283eb1cf7000a9cfab1029.zip
Fix display of >=60 minute songs
-rw-r--r--nncmpp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nncmpp.c b/nncmpp.c
index 8a277d9..30e9015 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -752,7 +752,7 @@ static void
app_write_time (struct row_buffer *buf, int seconds, chtype attrs)
{
int minutes = seconds / 60; seconds %= 60;
- int hours = minutes / 60; hours %= 60;
+ int hours = minutes / 60; minutes %= 60;
struct str s;
str_init (&s);