From 7ee121c15e3b3b6d5b7b309bcc136dcbec161749 Mon Sep 17 00:00:00 2001 From: Dan O'Reilly Date: Tue, 10 Feb 2009 01:08:12 -0500 Subject: [PATCH] Don't convert to milliseconds in misc.timeout_add if milli is True. --- wicd/misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wicd/misc.py b/wicd/misc.py index bc17d60..a221a70 100644 --- a/wicd/misc.py +++ b/wicd/misc.py @@ -663,5 +663,6 @@ def timeout_add(time, func, milli=False): if hasattr(gobject, "timeout_add_seconds") and not milli: return gobject.timeout_add_seconds(time, func) else: - return gobject.timeout_add(time * 1000, func) + if not milli: time = time * 1000 + return gobject.timeout_add(time, func) \ No newline at end of file