Преглед изворни кода

cpu_freq: Simplify with E-notation

Thanks to the FRIGN
Aaron Marcher пре 7 година
родитељ
комит
c2492c3f99
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      components/cpu.c

+ 1 - 1
components/cpu.c

@@ -68,7 +68,7 @@
 			return NULL;
 		}
 
-		return fmt_human(freq * 1000 * 1000, 1000);
+		return fmt_human(freq * 1E6, 1000);
 	}
 
 	const char *