mirror of
https://github.com/nushell/nushell
synced 2024-12-28 05:53:09 +00:00
calculates history duration properly (#5827)
This commit is contained in:
parent
08aa248c42
commit
dbcfcdae89
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ impl Command for History {
|
||||||
},
|
},
|
||||||
Value::Duration {
|
Value::Duration {
|
||||||
val: match entry.duration {
|
val: match entry.duration {
|
||||||
Some(d) => d.as_millis().try_into().unwrap_or(0),
|
Some(d) => d.as_nanos().try_into().unwrap_or(0),
|
||||||
None => 0,
|
None => 0,
|
||||||
},
|
},
|
||||||
span: head,
|
span: head,
|
||||||
|
|
Loading…
Reference in a new issue