mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-25 12:21:55 +02:00
fix: unitless sync_frequence = 0 not parsed by humantime (#2154)
Resolve #2147
This commit is contained in:
parent
55840bddf5
commit
0a6bfbba3e
@ -553,6 +553,10 @@ impl Settings {
|
||||
return Ok(false);
|
||||
}
|
||||
|
||||
if self.sync_frequency == "0" {
|
||||
return Ok(true);
|
||||
}
|
||||
|
||||
match parse_duration(self.sync_frequency.as_str()) {
|
||||
Ok(d) => {
|
||||
let d = time::Duration::try_from(d).unwrap();
|
||||
|
Loading…
x
Reference in New Issue
Block a user