diff mbox

patchwork: fix polling sleep time

Message ID 20170203041949.9729-1-andrew.donnellan@au1.ibm.com
State Accepted
Headers show

Commit Message

Andrew Donnellan Feb. 3, 2017, 4:19 a.m. UTC
From: Russell Currey <ruscur@russell.cc>

Our documentation says that patchwork polling sleep time is expressed in
minutes. Make the code actually do that...

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>

---

already merged, for information only

---
 src/main.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/main.rs b/src/main.rs
index d0e0b49..af488f3 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -376,6 +376,6 @@  fn main() {
             }
         }
         info!("Finished testing new revisions, sleeping.");
-        thread::sleep(Duration::new(settings.patchwork.polling_interval, 0));
+        thread::sleep(Duration::new(settings.patchwork.polling_interval * 60, 0));
     }
 }