feat: add cpu frequency

This commit is contained in:
utox39 committed 2025-03-20 13:43:35 +01:00
1 parent 5fe913da11
commit 6a8f82dd41
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ pub fn main() !void {
allocator.free(shell);
const cpu_info = try detection.getCpuInfo(allocator);
try stdout.print("cpu: {s} ({})\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores });
try stdout.print("cpu: {s} ({}) @ {d:.2} GHz\n", .{ cpu_info.cpu_name, cpu_info.cpu_cores, cpu_info.cpu_max_freq });
try bw.flush();
allocator.free(cpu_info.cpu_name);