Correctly get scheduled time
This commit is contained in:
parent
d7a0a6a3e5
commit
86bfce8481
|
@ -214,13 +214,15 @@ async fn async_main() {
|
|||
sleep(Duration::from_secs(i * 60 * 60)).await;
|
||||
i += 1;
|
||||
continue;
|
||||
} else if err.output.starts_with("autoytarchivers:")
|
||||
} else if err
|
||||
.output
|
||||
.starts_with("ERROR: autoytarchivers:")
|
||||
{
|
||||
drop(guard);
|
||||
let time: u64 = err
|
||||
.output
|
||||
.splitn(3, &[':', ' '][..])
|
||||
.nth(1)
|
||||
.splitn(5, &[':', ' '][..])
|
||||
.nth(3)
|
||||
.unwrap()
|
||||
.parse()
|
||||
.unwrap();
|
||||
|
|
Loading…
Reference in New Issue