From: Dobrica Pavlinusic Date: Sat, 10 Dec 2016 14:25:04 +0000 (+0100) Subject: insert correct value for M X-Git-Url: http://git.rot13.org/?p=atop-influxdb;a=commitdiff_plain;h=03715904b0522010e9d315e3077e23d92905ef82;ds=inline insert correct value for M --- diff --git a/atop2influx.pl b/atop2influx.pl index 691defc..d56c4da 100755 --- a/atop2influx.pl +++ b/atop2influx.pl @@ -80,8 +80,8 @@ while(<>) { next; }; - #$v *= 1024 * 1024 if $v =~ s/M$//; - $v =~ s/M$//; + $v *= 1024 * 1024 if $v =~ s/M$//; + #$v =~ s/M$//; $v =~ s/%$//; $v =~ s/\s/\\ /g unless $v =~ m/"/;