mirror of
https://github.com/hubaldv/bioz-host-rs.git
synced 2025-12-06 05:11:17 +00:00
Include decimal in frequency table.
This commit is contained in:
@@ -278,7 +278,7 @@ impl TabViewer {
|
|||||||
if freq % 1_000 == 0 {
|
if freq % 1_000 == 0 {
|
||||||
format!("{}k", (freq / 1_000) as u64)
|
format!("{}k", (freq / 1_000) as u64)
|
||||||
} else {
|
} else {
|
||||||
format!("{:.1}k", freq / 1_000)
|
format!("{:.1}k", freq as f32 / 1_000.0)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Hz
|
// Hz
|
||||||
|
|||||||
Reference in New Issue
Block a user