Correctly get scheduled time

This commit is contained in:
blank X 2021-06-21 21:34:34 +07:00
parent d7a0a6a3e5
commit 86bfce8481
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 5 additions and 3 deletions

View File

@ -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();