This commit is contained in:
Samuel Onoja committed 2026-10-01 08:56:26 +01:00
1 parent 6d8041a59a
commit 1364ff62b8
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ impl Mode {
}
pub fn label(self) -> String {
if self.refresh % 1000 == 0 {
if self.refresh.is_multiple_of(1000) {
format!("{} Hz", self.refresh / 1000)
} else {
format!("{:.3} Hz", f64::from(self.refresh) / 1000.)