summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x86info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86info.c b/x86info.c
index a1dd9b2..c0a11a9 100644
--- a/x86info.c
+++ b/x86info.c
@@ -268,7 +268,7 @@ int main (int argc, char **argv)
int b = ((cpu->MHz % 1000)/100);
int c = (a*1000)+(b*100);
- printf("%u.%u%uGHz", a, b, cpu->MHz - c);
+ printf("%u.%u%uGHz", a, b, (cpu->MHz - c)/10);
}
printf (" processor (estimate).\n\n");
}