Przeglądaj źródła

cpu_freq: Simplify with E-notation

Thanks to the FRIGN
Aaron Marcher 7 lat temu
rodzic
commit
c2492c3f99
1 zmienionych plików z 1 dodań i 1 usunięć
  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 *