commit eb54fce1b519768c5b9a2741141ae62d21901c49 parent 217ce27a4b3546779031dc8d247a0be84850b94a Author: Kris Maglione <kris@suckless.org> Date: Fri, 4 Jun 2010 16:16:36 -0400 Fix ping lag calculation on 32 bit systems. Closes issue #187. Diffstat:
cmd/wmii/ewmh.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/wmii/ewmh.c b/cmd/wmii/ewmh.c @@ -78,7 +78,7 @@ ewmh_init(void) { inline bool ewmh_responsive_p(Client *c) { - return c->w.ewmh.ping == 0 || nsec() / 1000000 - c->w.ewmh.ping < PingTime; + return c->w.ewmh.ping == 0 || (ulong)(nsec() / 1000000) - c->w.ewmh.ping < PingTime; } void