mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:07:42 +02:00
Math operators (#1601)
* Add some math operations * WIP for adding compound expressions * precedence parsing * paren expressions * better lhs handling * add compound comparisons and shorthand lefthand parsing * Add or comparison and shorthand paths
This commit is contained in:
@ -97,7 +97,7 @@ async fn host(tag: Tag) -> Value {
|
||||
|
||||
// Uptime
|
||||
if let Ok(uptime) = uptime_result {
|
||||
let uptime = uptime.get::<time::second>().round() as u64;
|
||||
let uptime = uptime.get::<time::second>().round() as i64;
|
||||
|
||||
dict.insert_untagged("uptime", UntaggedValue::duration(uptime));
|
||||
}
|
||||
|
Reference in New Issue
Block a user