changeset 437:eb17963bc142 trunk

[svn] Take matters of seconds into consideration.
author nenolod
date Sat, 14 Jan 2006 18:12:15 -0800
parents 29abdef30cc6
children d6051a60aae2
files audacious/mainwin.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/mainwin.c	Sat Jan 14 18:10:44 2006 -0800
+++ b/audacious/mainwin.c	Sat Jan 14 18:12:15 2006 -0800
@@ -1939,6 +1939,9 @@
 
     g_get_current_time(&now_time);
 
+    now_time.tv_usec *= now_time.tv_sec;
+    cb_time.tv_usec *= cb_time.tv_sec;
+
     now_dur = (now_time.tv_usec - cb_time.tv_usec) / 1000;
 
     if (now_dur <= 150 && now_dur >= -150)
@@ -1963,6 +1966,9 @@
 
     g_get_current_time(&now_time);
 
+    now_time.tv_usec *= now_time.tv_sec;
+    cb_time.tv_usec *= cb_time.tv_sec;
+
     now_dur = (now_time.tv_usec - cb_time.tv_usec) / 1000;
 
     if (now_dur <= 150 && now_dur >= -150)