Explorar o código

cpu_freq: Simplify with E-notation

Thanks to the FRIGN
Aaron Marcher %!s(int64=7) %!d(string=hai) anos
pai
achega
c2492c3f99
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 *