Commit d7a3aede authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #216 from caringi/master

Fix 'lhist() 0 entry has 0M' (issue 63)
parents 6b3f1956 906c4f63
......@@ -1095,7 +1095,11 @@ std::string BPFtrace::lhist_index_label(int number)
std::ostringstream label;
if (number % mega == 0)
if (number == 0)
{
label << number;
}
else if (number % mega == 0)
{
label << number / mega << 'M';
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment