refactor: tweak style in keybindview and inputview

This commit is contained in:
CJ van den Berg 2025-12-11 19:50:10 +01:00
parent 94d75a230b
commit e5894c1404
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 4 additions and 4 deletions

View file

@ -83,10 +83,10 @@ fn output_tdiff(self: *Self, tdiff: i64) !void {
if (msi == 0) {
const d: f64 = @floatFromInt(tdiff);
const ms = d / time.us_per_ms;
_ = try self.plane.print("{d:6.2}", .{ms});
_ = try self.plane.print("{d:6.2}", .{ms});
} else {
const ms: u64 = @intCast(msi);
_ = try self.plane.print("{d:6}", .{ms});
_ = try self.plane.print("{d:6}", .{ms});
}
}

View file

@ -83,10 +83,10 @@ fn output_tdiff(self: *Self, tdiff: i64) !void {
if (msi == 0) {
const d: f64 = @floatFromInt(tdiff);
const ms = d / time.us_per_ms;
_ = try self.plane.print("{d:6.2}", .{ms});
_ = try self.plane.print("{d:6.2}", .{ms});
} else {
const ms: u64 = @intCast(msi);
_ = try self.plane.print("{d:6}", .{ms});
_ = try self.plane.print("{d:6}", .{ms});
}
}