aboutsummaryrefslogtreecommitdiffstats
path: root/src/local/history.rs
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-02-13 19:37:00 +0000
committerEllie Huxtable <e@elm.sh>2021-02-13 19:37:31 +0000
commit099afe66ecfb569a8a04b66425ded29665e6a37c (patch)
tree7bb1baadb9304fa0d4f353d0849f962e2af209e3 /src/local/history.rs
parentRecord command exit code and duration (diff)
downloadatuin-099afe66ecfb569a8a04b66425ded29665e6a37c.zip
Implement history import
Diffstat (limited to 'src/local/history.rs')
-rw-r--r--src/local/history.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/local/history.rs b/src/local/history.rs
index 3c9a9069..00109621 100644
--- a/src/local/history.rs
+++ b/src/local/history.rs
@@ -12,10 +12,10 @@ pub struct History {
}
impl History {
- pub fn new(command: String, cwd: String, exit: i64, duration: i64) -> History {
+ pub fn new(timestamp: i64, command: String, cwd: String, exit: i64, duration: i64) -> History {
History {
id: Uuid::new_v4().to_simple().to_string(),
- timestamp: chrono::Utc::now().timestamp_millis(),
+ timestamp,
command,
cwd,
exit,