change(printBattery): Added disclaimer to guessed series count

This commit is contained in:
datalore 2025-05-30 11:18:55 +02:00
parent e2c0394b26
commit 17efe3722f

View File

@ -25,7 +25,7 @@ fn printBattery(battery: batinfo.BatteryInfo) !void {
const stdout = std.io.getStdOut().writer(); const stdout = std.io.getStdOut().writer();
try stdout.print("Battery {s} {s}\n", .{battery.Manufacturer, battery.Model}); try stdout.print("Battery {s} {s}\n", .{battery.Manufacturer, battery.Model});
try stdout.print("\tTechnology: {s}\n", .{battery.Technology}); try stdout.print("\tTechnology: {s}\n", .{battery.Technology});
try stdout.print("\tCell series count: {}s\n\n", .{battery.CellSeriesCount}); try stdout.print("\tCell series count: {}s (guessed)\n\n", .{battery.CellSeriesCount});
try stdout.print("\tCapacity: {}%\n", .{battery.Capacity}); try stdout.print("\tCapacity: {}%\n", .{battery.Capacity});
try stdout.print("\tCapacity (design): {}%\n", .{battery.CapacityDesign}); try stdout.print("\tCapacity (design): {}%\n", .{battery.CapacityDesign});
try stdout.print("\tVmin: {d:.2}V Per cell: {d:.2}V\n", .{battery.Vmin, battery.Vmin/@as(f32, @floatFromInt(battery.CellSeriesCount))}); try stdout.print("\tVmin: {d:.2}V Per cell: {d:.2}V\n", .{battery.Vmin, battery.Vmin/@as(f32, @floatFromInt(battery.CellSeriesCount))});