mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 20:41:12 +02:00
Make the default int an i64 (#3428)
* Make the default int an i64 * fmt * Fix random integer * Treat pids as i64 for now
This commit is contained in:
@ -80,7 +80,7 @@ pub fn cpu(sys: &mut System, tag: Tag) -> Option<UntaggedValue> {
|
||||
"brand",
|
||||
UntaggedValue::string(trim_cstyle_null(cpu.get_brand().to_string())),
|
||||
);
|
||||
dict.insert_untagged("freq", UntaggedValue::int(cpu.get_frequency()));
|
||||
dict.insert_untagged("freq", UntaggedValue::int(cpu.get_frequency() as i64));
|
||||
|
||||
output.push(dict.into_value());
|
||||
}
|
||||
|
Reference in New Issue
Block a user