chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shun time(), since on Linux it is not monotonic with gettimeofday().
[disorder]
/
disobedience
/
client.c
diff --git
a/disobedience/client.c
b/disobedience/client.c
index dd40597fcc3962874b9166206629ddca90508119..45c6c0a94b2406d408a0c546d6722ca4bb71b640 100644
(file)
--- a/
disobedience/client.c
+++ b/
disobedience/client.c
@@
-37,7
+37,7
@@
static gboolean gtkclient_prepare(GSource *source,
gint *timeout) {
const struct eclient_source *esource = (struct eclient_source *)source;
D(("gtkclient_prepare"));
gint *timeout) {
const struct eclient_source *esource = (struct eclient_source *)source;
D(("gtkclient_prepare"));
- if(time(0) > esource->last_poll + 10)
+ if(
x
time(0) > esource->last_poll + 10)
return TRUE; /* timed out */
*timeout = 3000/*milliseconds*/;
return FALSE; /* please poll */
return TRUE; /* timed out */
*timeout = 3000/*milliseconds*/;
return FALSE; /* please poll */
@@
-65,7
+65,7
@@
static gboolean gtkclient_dispatch(GSource *source,
mode |= DISORDER_POLL_READ;
if(revents & (G_IO_OUT|G_IO_HUP|G_IO_ERR))
mode |= DISORDER_POLL_WRITE;
mode |= DISORDER_POLL_READ;
if(revents & (G_IO_OUT|G_IO_HUP|G_IO_ERR))
mode |= DISORDER_POLL_WRITE;
- time(&esource->last_poll);
+
x
time(&esource->last_poll);
disorder_eclient_polled(esource->client, mode);
return TRUE; /* ??? not documented */
}
disorder_eclient_polled(esource->client, mode);
return TRUE; /* ??? not documented */
}