git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more direct access to tunnel stats
[sliver-openvswitch.git]
/
planetlab
/
scripts
/
sliver-ovs.in
diff --git
a/planetlab/scripts/sliver-ovs.in
b/planetlab/scripts/sliver-ovs.in
index
08bef1c
..
d58c1d2
100755
(executable)
--- a/
planetlab/scripts/sliver-ovs.in
+++ b/
planetlab/scripts/sliver-ovs.in
@@
-271,8
+271,8
@@
function gmap_report_once () {
iface=$1; shift
hostname=$1; shift
linkid=$1; shift
iface=$1; shift
hostname=$1; shift
linkid=$1; shift
- rx_bytes=$(ovs-
vsctl get interface $iface statistics:rx_bytes
)
- tx_bytes=$(ovs-
vsctl get interface $iface statistics:tx_bytes
)
+ rx_bytes=$(ovs-
appctl netdev-tunnel/get-rx-bytes $iface
)
+ tx_bytes=$(ovs-
appctl netdev-tunnel/get-tx-bytes $iface
)
rx_bits=$(($rx_bytes*8))
tx_bits=$(($tx_bytes*8))
now=$(date +%s).$(date +%N)
rx_bits=$(($rx_bytes*8))
tx_bits=$(($tx_bytes*8))
now=$(date +%s).$(date +%N)