chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Shun time(), since on Linux it is not monotonic with gettimeofday().
[disorder]
/
disobedience
/
queue-generic.c
diff --git
a/disobedience/queue-generic.c
b/disobedience/queue-generic.c
index 636f10ca005167d54dda4a2e3647617fbb0e75d1..aa29c28ead2751a72339af4ae28a99aef42dadd6 100644
(file)
--- a/
disobedience/queue-generic.c
+++ b/
disobedience/queue-generic.c
@@
-129,7
+129,7
@@
const char *column_length(const struct queue_entry *q,
else {
if(!last_playing)
return NULL;
- time(&now);
+
x
time(&now);
l = playing_track->sofar + (now - last_playing);
}
byte_xasprintf(&played, "%ld:%02ld/%s", l / 60, l % 60, length);