Skip to content

Commit

Permalink
removing negative values in script this can be done on grafana side
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis M Silva committed Mar 30, 2016
1 parent 451b94d commit 71760c9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions graph_lfs_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,47 +221,47 @@ def dictify_brw(self):
read_key = heading+'_read_4k'
write_key = heading+'_write_4k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '8K:' in line:
read_key = heading+'_read_8k'
write_key = heading+'_write_8k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '16K:' in line:
read_key = heading+'_read_16k'
write_key = heading+'_write_16k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '32K:' in line:
read_key = heading+'_read_32k'
write_key = heading+'_write_32k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '64K:' in line:
read_key = heading+'_read_64k'
write_key = heading+'_write_64k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '128K:' in line:
read_key = heading+'_read_128k'
write_key = heading+'_write_128k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '256K:' in line:
read_key = heading+'_read_256k'
write_key = heading+'_write_256k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '512K:' in line:
read_key = heading+'_read_512k'
write_key = heading+'_write_512k'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if '1M:' in line:
read_key = heading+'_read_1M'
write_key = heading+'_write_1M'
ost_stats[read_key] = int(line.split()[1])
ost_stats[write_key] = -int(line.split()[5])
ost_stats[write_key] = int(line.split()[5])
if sample == 2:
self.ost_stats2 = ost_stats
else:
Expand Down

0 comments on commit 71760c9

Please sign in to comment.