projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33303b
)
Only send updates if byte count actually changed
author
Marcel Holtmann
<marcel@holtmann.org>
Tue, 5 Jan 2010 15:07:44 +0000
(07:07 -0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 5 Jan 2010 15:07:44 +0000
(07:07 -0800)
src/counter.c
patch
|
blob
|
history
diff --git
a/src/counter.c
b/src/counter.c
index
224d122
..
31d463e
100644
(file)
--- a/
src/counter.c
+++ b/
src/counter.c
@@
-164,6
+164,10
@@
void __connman_counter_notify(unsigned int rx_bytes, unsigned int tx_bytes)
while (g_hash_table_iter_next(&iter, &key, &value) == TRUE) {
struct connman_counter *counter = value;
+ if (counter->rx_bytes == rx_bytes &&
+ counter->tx_bytes == tx_bytes)
+ continue;
+
counter->rx_bytes = rx_bytes;
counter->tx_bytes = tx_bytes;