~humaid/hstatus

e6db2ea936f4e700a4af4ee666e8462653936184 — Humaid AlQassimi 2 years ago f0fbde6
Use decimal points when formatting load.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +1 -1
@@ 118,7 118,7 @@ fn get_load() -> Result<string::String, &'static str> {
            unsafe {
                avgs.set_len(3_usize);
            }
            Ok(format!("{} {} {}", avgs[0], avgs[1], avgs[2]))
            Ok(format!("{:.2} {:.2} {:.2}", avgs[0], avgs[1], avgs[2]))
        }
        _ => Err("unknown value"),
    }