huskies: merge 927
This commit is contained in:
@@ -101,6 +101,7 @@ fn parse_duration(s: &str) -> Option<u64> {
|
||||
///
|
||||
/// Returns a short string like `"load average: 1.23, 0.98, 0.75"` on success,
|
||||
/// or `"load: unknown"` on failure.
|
||||
#[allow(clippy::string_slice)] // idx comes from output.find("load average") → always a char boundary
|
||||
fn get_load_average() -> String {
|
||||
let output = std::process::Command::new("uptime")
|
||||
.output()
|
||||
|
||||
Reference in New Issue
Block a user