[hamradio-commits] [dump1090] 297/389: B"H view1090: sleep a bit between loops
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:20:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit ec09cc7a71d6c2aa8b341568120af7fd68ab9f17
Author: hhm <heehooman+vcs-ci at gmail.com>
Date: Thu Jul 3 02:41:06 2014 -0400
B"H view1090: sleep a bit between loops
view1090 was using close to 100% CPU before, with the non-blocking
commits and the reconnection code. sleep a bit between loop iterations
to keep CPU usage low.
CPU usage with this addition was down to <1% in testing.
---
view1090.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/view1090.c b/view1090.c
index 2dbd323..5ce15ad 100644
--- a/view1090.c
+++ b/view1090.c
@@ -291,6 +291,7 @@ int main(int argc, char **argv) {
continue;
}
modesReadFromClient(c,"",decodeBinMessage);
+ usleep(100000);
}
// The user has stopped us, so close any socket we opened
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list