projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b300f99
)
Fix display of cumulative packet counters.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 6 Dec 2012 15:57:57 +0000
(16:57 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 6 Dec 2012 15:59:35 +0000
(16:59 +0100)
doc/tincctl.8.in
patch
|
blob
|
history
src/top.c
patch
|
blob
|
history
diff --git
a/doc/tincctl.8.in
b/doc/tincctl.8.in
index
8fdd272
..
f6b5010
100644
(file)
--- a/
doc/tincctl.8.in
+++ b/
doc/tincctl.8.in
@@
-206,7
+206,7
@@
Fractional seconds are honored.
Intervals lower than 0.1 seconds are not allowed.
.It Ic c
Toggle between displaying current traffic rates (in packets and bytes per second)
Intervals lower than 0.1 seconds are not allowed.
.It Ic c
Toggle between displaying current traffic rates (in packets and bytes per second)
-and cum
m
ulative traffic (total packets and bytes since the tinc daemon started).
+and cumulative traffic (total packets and bytes since the tinc daemon started).
.It Ic n
Sort the list of nodes by name.
.It Ic i
.It Ic n
Sort the list of nodes by name.
.It Ic i
diff --git
a/src/top.c
b/src/top.c
index
8cd82be
..
28ab56f
100644
(file)
--- a/
src/top.c
+++ b/
src/top.c
@@
-229,7
+229,7
@@
static void redraw(void) {
attrset(A_DIM);
if(cumulative)
attrset(A_DIM);
if(cumulative)
- mvprintw(row, 0, "%-16s %10
"PRIu64" %10.0f %10"PRIu64"
%10.0f",
+ mvprintw(row, 0, "%-16s %10
.0f %10.0f %10.0f
%10.0f",
node->name, node->in_packets * pscale, node->in_bytes * bscale, node->out_packets * pscale, node->out_bytes * bscale);
else
mvprintw(row, 0, "%-16s %10.0f %10.0f %10.0f %10.0f",
node->name, node->in_packets * pscale, node->in_bytes * bscale, node->out_packets * pscale, node->out_bytes * bscale);
else
mvprintw(row, 0, "%-16s %10.0f %10.0f %10.0f %10.0f",