Commit 8d5c6b7b authored by Brendan Gregg's avatar Brendan Gregg Committed by GitHub

Merge pull request #54 from iovisor/lhist_readable_M

M capitalized
parents 2e735201 b0fd03e7
...@@ -978,7 +978,7 @@ std::string BPFtrace::hist_index_label(int power) ...@@ -978,7 +978,7 @@ std::string BPFtrace::hist_index_label(int power)
} }
else if (power >= 10) else if (power >= 10)
{ {
suffix = 'k'; suffix = 'K';
power -= 10; power -= 10;
} }
...@@ -998,13 +998,14 @@ std::string BPFtrace::lhist_index_label(int number) ...@@ -998,13 +998,14 @@ std::string BPFtrace::lhist_index_label(int number)
if (number % mega == 0) if (number % mega == 0)
{ {
label << number / mega << 'm'; label << number / mega << 'M';
} }
else if (number % kilo == 0) else if (number % kilo == 0)
{ {
label << number / kilo << 'k'; label << number / kilo << 'K';
} }
else { else
{
label << number; label << number;
} }
......
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