[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] remove outdated warning and avoid using bc

Holger Levsen gitlab at salsa.debian.org
Tue Dec 18 20:05:05 GMT 2018


Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
cf32548b by Holger Levsen at 2018-12-18T20:04:54Z
remove outdated warning and avoid using bc

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- init_node


Changes:

=====================================
init_node
=====================================
@@ -40,13 +40,11 @@ set +e
 
 END=$(date +'%s')
 DURATION=$(( $END - $START ))
-HOUR=$(echo "$DURATION/3600"|bc)
-MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc)
-SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc)
+HOUR=$(( $DURATION/3600 ))
+MIN=$(( ($DURATION-$HOUR*3600)/60 ))
+SEC=$(( $DURATION-$HOUR*3600-$MIN*60 ))
 echo "$(date -u) - total duration: ${HOUR}h ${MIN}m ${SEC}s."
 echo
-echo "#### NOTE ####   (Those sudo problems are normal, see below!   #### NOTE ####"
-echo
 echo "Now log out and log in as your user and run:"
 echo "        cd ~jenkins-adm/jenkins.debian.net/"
 echo "        ./update_jdn.sh 2>&1 | sudo tee -a /var/log/jenkins/update_jdn.log"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/cf32548bc9c6487b179b2f41a1d83aff52799955

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/cf32548bc9c6487b179b2f41a1d83aff52799955
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20181218/cd9e6bc0/attachment.html>


More information about the Qa-jenkins-scm mailing list