From 86bfce84811bd6bcf335bd8613640881961333ca Mon Sep 17 00:00:00 2001 From: blank X Date: Mon, 21 Jun 2021 21:34:34 +0700 Subject: [PATCH] Correctly get scheduled time --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0e292dc..a24406e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();