diff --git a/crates/nu-command/src/misc/history.rs b/crates/nu-command/src/misc/history.rs index d38099e47c..41c303af03 100644 --- a/crates/nu-command/src/misc/history.rs +++ b/crates/nu-command/src/misc/history.rs @@ -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,