From 4dc4b7d4d391da3e0c65d4cfcd2878f32521e903 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 3 Aug 2020 18:09:53 +0200 Subject: [PATCH] error: lib/gears/timer.lua:94: bad argument #3 to 'timeout_add' (number has no integer representation) --- lib/gears/timer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gears/timer.lua b/lib/gears/timer.lua index ee1778d71..66c10f171 100644 --- a/lib/gears/timer.lua +++ b/lib/gears/timer.lua @@ -91,7 +91,7 @@ function timer:start() gdebug.print_error(traceback("timer already started")) return end - self.data.source_id = glib.timeout_add(glib.PRIORITY_DEFAULT, self.data.timeout * 1000, function() + self.data.source_id = glib.timeout_add(glib.PRIORITY_DEFAULT, math.ceil(self.data.timeout * 1000), function() protected_call(self.emit_signal, self, "timeout") return true end)