summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-06-09 12:08:22 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-06-09 12:08:22 +0200
commit2f74f6e53de49b981edf3ca337c897dec297c1aa (patch)
tree6d558ab30a620bce2b0d35b72440988fa9cc83e4 /ifpps.c
parent586daa5c53e99e0327dec27dfdaf6f5436d0c92c (diff)
ifpps: Don't diff tx_bytes twice
It's sufficient to calculate the difference of tx_bytes only once. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ifpps.c b/ifpps.c
index 5495ce9..f2becb5 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -471,7 +471,6 @@ static void stats_diff(struct ifstat *old, struct ifstat *new,
DIFF(rx_multi);
DIFF(tx_bytes);
- DIFF(tx_bytes);
DIFF(tx_packets);
DIFF(tx_drops);
DIFF(tx_errors);