From c5bdf40041b1368bd7aed55242a2732fa4c00d2b Mon Sep 17 00:00:00 2001
From: Carmelo Pellegrino <carmelo.pellegrino@gmail.com>
Date: Wed, 20 May 2015 12:07:39 +0200
Subject: [PATCH] sleep time correctly computed

---
 patch-control.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/patch-control.sh b/patch-control.sh
index 7983699..34e74cb 100644
--- a/patch-control.sh
+++ b/patch-control.sh
@@ -162,7 +162,8 @@ zenity --question \
        --cancel-label="No, thanks" && firefox http://localhost:1301/ &
 
 # Wait the end of the run
-sleep ${run_duration}
+let 'run_duration_seconds = ${run_duration} * 60'
+sleep ${run_duration_seconds}
 
 zenity --info --text="Run ${run_number} finished!"
 
-- 
GitLab