projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcff0d0
)
dns plugin: Only submit dns-traffic if either counter is non-zero.
author
Florian Forster
<octo@huhu.verplant.org>
Fri, 18 May 2007 15:10:35 +0000
(17:10 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 18 May 2007 15:10:35 +0000
(17:10 +0200)
src/dns.c
patch
|
blob
|
history
diff --git
a/src/dns.c
b/src/dns.c
index
5af9c20
..
7ce7aad
100644
(file)
--- a/
src/dns.c
+++ b/
src/dns.c
@@
-348,7
+348,9
@@
static int dns_read (void)
values[0] = tr_queries;
values[1] = tr_responses;
pthread_mutex_unlock (&traffic_mutex);
- submit_octets (values[0], values[1]);
+
+ if ((values[0] != 0) || (values[1] != 0))
+ submit_octets (values[0], values[1]);
pthread_mutex_lock (&qtype_mutex);
for (ptr = qtype_list, len = 0;