summaryrefslogtreecommitdiffstats
path: root/src/com.gluster.storage.management.server.scripts
diff options
context:
space:
mode:
Diffstat (limited to 'src/com.gluster.storage.management.server.scripts')
-rwxr-xr-xsrc/com.gluster.storage.management.server.scripts/src/get_rrd_net_details.py4
-rwxr-xr-xsrc/com.gluster.storage.management.server.scripts/src/rrd_net.pl2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/com.gluster.storage.management.server.scripts/src/get_rrd_net_details.py b/src/com.gluster.storage.management.server.scripts/src/get_rrd_net_details.py
index 01777a9b..6a31cde8 100755
--- a/src/com.gluster.storage.management.server.scripts/src/get_rrd_net_details.py
+++ b/src/com.gluster.storage.management.server.scripts/src/get_rrd_net_details.py
@@ -25,8 +25,8 @@ def main():
sys.stderr.write("usage: %s <DEVICE> <PERIOD>\n" % os.path.basename(sys.argv[0]))
sys.exit(-1)
- device = sys.argv[0]
- period = sys.argv[1]
+ device = sys.argv[1]
+ period = sys.argv[2]
rs = ResponseXml()
command = "rrdtool xport --start -%s \
diff --git a/src/com.gluster.storage.management.server.scripts/src/rrd_net.pl b/src/com.gluster.storage.management.server.scripts/src/rrd_net.pl
index 61187487..e151f557 100755
--- a/src/com.gluster.storage.management.server.scripts/src/rrd_net.pl
+++ b/src/com.gluster.storage.management.server.scripts/src/rrd_net.pl
@@ -41,7 +41,7 @@ sub updatenetdata {
while (<NETDEV>) {
chomp;
s/^\s+//; # remove left side whitespaces
- /:\s/ or next; # if input line contains ':' else continue
+ /:.+/ or next; # if input line contains ':' else continue
next if /^lo:\s/; # continue if input line starts with 'lo:'
@tokens = split /\s+/;