1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-25 13:48:19 +02:00

calculates history duration properly ()

This commit is contained in:
pwygab 2022-06-19 12:44:46 +08:00 committed by GitHub
parent 08aa248c42
commit dbcfcdae89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ impl Command for History {
},
Value::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,
},
span: head,