From 3306648a89578b5eba36b7c6aa40550cd9811885 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 7 Jul 2005 13:19:33 +0000 Subject: [PATCH] Improve GHz speed accuracy, thanks to Axel for suggesting this. (And, yes, that's stupid little commits, but I'm so bored at office *and* without any BeOS system to test...) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13529 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/pulse/NormalPulseView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/pulse/NormalPulseView.cpp b/src/apps/pulse/NormalPulseView.cpp index d14fca30a9..6a2cb9b466 100644 --- a/src/apps/pulse/NormalPulseView.cpp +++ b/src/apps/pulse/NormalPulseView.cpp @@ -217,7 +217,7 @@ NormalPulseView::Draw(BRect rect) // Draw processor type and speed char buf[500]; int cpu_speed = CalculateCPUSpeed(); - if (cpu_speed > 1000) + if (cpu_speed > 1000 && (cpu_speed % 10) == 0) sprintf(buf, "%.2f GHz", cpu_speed / 1000.0f); else sprintf(buf, "%d MHz", cpu_speed);