浏览代码

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 *