That's Hz, not hz when prefixed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13522 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -199,9 +199,9 @@ AboutView::AboutView(const BRect &r)
|
||||
r.bottom = r.top + textHeight;
|
||||
|
||||
if (systemInfo.cpu_clock_speed < 1000000000)
|
||||
sprintf(string,"%d Mhz", int(systemInfo.cpu_clock_speed / 1000000.0f));
|
||||
sprintf(string,"%d MHz", int(systemInfo.cpu_clock_speed / 1000000.0f));
|
||||
else
|
||||
sprintf(string,"%.2f Ghz", systemInfo.cpu_clock_speed / 1000000000.0f);
|
||||
sprintf(string,"%.2f GHz", systemInfo.cpu_clock_speed / 1000000000.0f);
|
||||
|
||||
stringView = new BStringView(r, "mhztext", string);
|
||||
fInfoView->AddChild(stringView);
|
||||
|
||||
@@ -218,7 +218,7 @@ NormalPulseView::Draw(BRect rect)
|
||||
char buf[500];
|
||||
int cpu_speed = CalculateCPUSpeed();
|
||||
if (cpu_speed > 1000)
|
||||
sprintf(buf, "%.2f Ghz", cpu_speed / 1000.0f);
|
||||
sprintf(buf, "%.2f GHz", cpu_speed / 1000.0f);
|
||||
else
|
||||
sprintf(buf, "%d MHz", cpu_speed);
|
||||
SetDrawingMode(B_OP_OVER);
|
||||
|
||||
Reference in New Issue
Block a user