[hackers] [wmii] Fix ping lag calculation on 32 bit systems. Closes issue #187. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Fri, 4 Jun 2010 20:16:52 +0000 (UTC)

changeset: 2701:1006e2f6027a
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Fri Jun 04 16:16:36 2010 -0400
files: cmd/wmii/ewmh.c
description:
Fix ping lag calculation on 32 bit systems. Closes issue #187.

diff -r c8cd91c26eeb -r 1006e2f6027a cmd/wmii/ewmh.c
--- a/cmd/wmii/ewmh.c Thu Jun 03 21:47:56 2010 -0400
+++ b/cmd/wmii/ewmh.c Fri Jun 04 16:16:36 2010 -0400
@@ -78,7 +78,7 @@
 
 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
Received on Fri Jun 04 2010 - 20:16:52 UTC

This archive was generated by hypermail 2.2.0 : Fri Jun 04 2010 - 20:24:04 UTC