trafficmonitor 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/trafficmonitor/iftop.rb +2 -2
- data/lib/trafficmonitor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 687aaf5bc308457a0db644b5a8a971c3394b1a5b
|
4
|
+
data.tar.gz: ce59b4cbb7e5638afc55bba7c62cac1b0b8403de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc297034a9f570940112b238823bec1b56203c0343ee95e69a40d716902feaebc8e3e489d8fb55dd93d6c29aebadfca498a5c7548b21ab060b9241ea807a83d8
|
7
|
+
data.tar.gz: a4a8d8f275e92b3c0f704003591f9b92cb654d0c5692e5cd016e070183abe5c80dede7b45edd6731e3d4c65ba820ea41e9dc1f36ef2fa54511ebcf3ac08dc85d
|
data/README.md
CHANGED
data/lib/trafficmonitor/iftop.rb
CHANGED
@@ -26,8 +26,8 @@ module Trafficmonitor
|
|
26
26
|
total_send_rate_2s = result[-8].split(' ')[3]
|
27
27
|
total_receive_rate_2s = result[-7].split(' ')[3]
|
28
28
|
|
29
|
-
conns['total_send_rate'] = total_send_rate_2s
|
30
|
-
conns['total_receive_rate'] = total_receive_rate_2s
|
29
|
+
conns['total_send_rate'] = remove_speed_unit(total_send_rate_2s)
|
30
|
+
conns['total_receive_rate'] = remove_speed_unit(total_receive_rate_2s)
|
31
31
|
|
32
32
|
return conns
|
33
33
|
end
|