hugowan / maatkit

Automatically exported from code.google.com/p/maatkit
0 stars 0 forks source link

When running mk-log-parser I get the error Can't take log of 0 at /usr/bin/mk-log-parser line 1728. #141

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think you can fix this by changing line 1728 from 

my $bucket = floor(log($val) / log(10)) + 6;

to 

my $bucket = 0;
if ($val != 0) {
$bucket = floor(log($val) / log(10)) + 6;
}

which seems to allow the script to run, I'm just not sure if it is
producing the correct results with that change.

Original issue reported on code.google.com by rod...@gmail.com on 3 Dec 2008 at 12:31

GoogleCodeExporter commented 9 years ago
Thanks, we'll release this in the next release and fix it in SVN too.

Original comment by baron.schwartz on 10 Dec 2008 at 5:44

GoogleCodeExporter commented 9 years ago
This should be fixed in r2599.

Original comment by baron.schwartz on 11 Dec 2008 at 7:50

GoogleCodeExporter commented 9 years ago
Merged to mk-log-parser in r2602.

Original comment by baron.schwartz on 11 Dec 2008 at 9:35