aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-10-17 11:57:48 -0700
committerIan Lance Taylor <iant@golang.org>2013-10-17 11:57:48 -0700
commit88c448ba40a29ac96563e9945d2af17fba779d23 (patch)
treef80a5893b62d47901ba65990d9c9b28d2fc12fe6
parent667303f158a80eb1297bad90cc65576e83260305 (diff)
downloadgo-88c448ba40a29ac96563e9945d2af17fba779d23.tar.gz
go-88c448ba40a29ac96563e9945d2af17fba779d23.zip
runtime: correct test for when to poll network
Fixes #6610. R=golang-dev, khr CC=golang-dev https://golang.org/cl/14793043
-rw-r--r--src/pkg/runtime/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index d5fc2dcac5..eb3263fc91 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -2382,7 +2382,7 @@ sysmon(void)
// poll network if not polled for more than 10ms
lastpoll = runtime·atomicload64(&runtime·sched.lastpoll);
now = runtime·nanotime();
- if(lastpoll != 0 && lastpoll + 10*1000*1000 > now) {
+ if(lastpoll != 0 && lastpoll + 10*1000*1000 < now) {
runtime·cas64(&runtime·sched.lastpoll, lastpoll, now);
gp = runtime·netpoll(false); // non-blocking
if(gp) {