mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
error: lib/gears/timer.lua:94: bad argument #3 to 'timeout_add' (number has no integer representation)
This commit is contained in:
parent
1377880611
commit
4dc4b7d4d3
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue