[Piuparts-commits] [piuparts] 01/01: correctly calculate runtime
Holger Levsen
holger at layer-acht.org
Wed Mar 8 21:40:53 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit b0daa492a674d7f2d4c2e3ddf3f508f26f7a7e02
Author: Holger Levsen <holger at layer-acht.org>
Date: Wed Mar 8 22:40:41 2017 +0100
correctly calculate runtime
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
master-bin/detect_network_issues.in | 2 +-
master-bin/detect_piuparts_issues.in | 2 +-
master-bin/generate_daily_report.in | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/master-bin/detect_network_issues.in b/master-bin/detect_network_issues.in
index 0fc38cc..c1abc3e 100755
--- a/master-bin/detect_network_issues.in
+++ b/master-bin/detect_network_issues.in
@@ -57,7 +57,7 @@ for SECTION in $SECTIONS ; do
done
if [ -s $FILE ] ; then
FINALDATE=$(date -u +%s)
- RUNTIME=$(date -u -d "$FINALDATE seconds - $STARTDATE seconds" +%T)
+ RUNTIME=$(date -u -d "0 $FINALDATE seconds - $STARTDATE seconds" +%T)
echo "Runtime: $RUNTIME"
echo
echo "Network problems on detected!"
diff --git a/master-bin/detect_piuparts_issues.in b/master-bin/detect_piuparts_issues.in
index d96ba18..6013559 100755
--- a/master-bin/detect_piuparts_issues.in
+++ b/master-bin/detect_piuparts_issues.in
@@ -73,7 +73,7 @@ for SECTION in $SECTIONS ; do
done
if [ -s $FILE ] ; then
FINALDATE=$(date -u +%s)
- RUNTIME=$(date -u -d "$FINALDATE seconds - $STARTDATE seconds" +%T)
+ RUNTIME=$(date -u -d "0 $FINALDATE seconds - $STARTDATE seconds" +%T)
echo "Runtime: $RUNTIME"
echo
echo "piuparts problem detected!"
diff --git a/master-bin/generate_daily_report.in b/master-bin/generate_daily_report.in
index 29f3e62..7d3c673 100755
--- a/master-bin/generate_daily_report.in
+++ b/master-bin/generate_daily_report.in
@@ -47,7 +47,7 @@ for SCRIPT in detect_network_issues detect_piuparts_issues archive_old_logs repo
@sharedir@/piuparts/master/$SCRIPT 2>&1 > $OUTPUT
FINALDATE=$(date -u +%s)
if [ -s $OUTPUT ] ; then
- RUNTIME=$(date -u -d "$FINALDATE seconds - $STARTDATE seconds" +%T)
+ RUNTIME=$(date -u -d "0 $FINALDATE seconds - $STARTDATE seconds" +%T)
( echo "Runtime: $RUNTIME" ; echo ; cat $OUTPUT ) | mail -s $SCRIPT $LOGNAME
fi
done
@@ -98,7 +98,7 @@ fi
rm $expire
FINALDATE=$(date -u +%s)
-RUNTIME=$(date -u -d "$FINALDATE seconds - $R_STARTDATE seconds" +%T)
+RUNTIME=$(date -u -d "0 $FINALDATE seconds - $R_STARTDATE seconds" +%T)
( echo "Runtime: $RUNTIME" ; echo ; cat $DAILYREPORT ) | mail -s piuparts-report $LOGNAME
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list