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;
|
sleep(Duration::from_secs(i * 60 * 60)).await;
|
||||||
i += 1;
|
i += 1;
|
||||||
continue;
|
continue;
|
||||||
} else if err.output.starts_with("autoytarchivers:")
|
} else if err
|
||||||
|
.output
|
||||||
|
.starts_with("ERROR: autoytarchivers:")
|
||||||
{
|
{
|
||||||
drop(guard);
|
drop(guard);
|
||||||
let time: u64 = err
|
let time: u64 = err
|
||||||
.output
|
.output
|
||||||
.splitn(3, &[':', ' '][..])
|
.splitn(5, &[':', ' '][..])
|
||||||
.nth(1)
|
.nth(3)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Reference in New Issue