[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] djm report: also show monthly hour calculation for 10m slices

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Jun 17 00:04:22 BST 2023



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


Commits:
1965a2be by Holger Levsen at 2023-06-17T01:04:10+02:00
djm report: also show monthly hour calculation for 10m slices

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

- - - - -


1 changed file:

- bin/djm


Changes:

=====================================
bin/djm
=====================================
@@ -347,8 +347,9 @@ djm_report() {
 	HOSTS=$(cut -d ',' -f2 $TMP_LOGFILE | sort -u | grep -v "web UI"| wc -l)
 	HOURS=$(cut -b 1-13 $TMP_LOGFILE | sort -u | wc -l)
 	TEN_MIN_SLICES=$(cut -b 1-15 $TMP_LOGFILE | sort -u | wc -l)
-	TWENTY_MIN_SLICES=$(( TEN_MIN_SLICES + TEN_MIN_SLICES ))
-	SLICES_AS_HOURS=$(($TWENTY_MIN_SLICES/3))
+	TWENTY_MIN_SLICES=$(( TEN_MIN_SLICES + TEN_MIN_SLICES )) # this is too simplefied and has false positives
+	TEN_SLICES_AS_HOURS=$(($TEN_MIN_SLICES/6))
+	TWEN_SLICES_AS_HOURS=$(($TWENTY_MIN_SLICES/3))
 	# create sorted list of actions/reasons (sorted by amount of occurances)
 	#  the character '%" is solely used as a delimeter for cut later
 	#  the character '=' is added so later we can use a for-loop without dealing with $IFS
@@ -370,8 +371,9 @@ djm_report() {
 	seperator
 	printf "$TWO_C" "hours with djm usage:" "${HOURS}"
 	printf "$TWO_C" " ten minute slices with djm usage:" "$TEN_MIN_SLICES"
+	printf "$TWO_C" " - thoses slices as hours:" "${TEN_SLICES_AS_HOURS}"
 	printf "$TWO_C" " twenty minute slices (because focus):" "$TWENTY_MIN_SLICES"
-	printf "$TWO_C" " thoses slices as hours:" "${SLICES_AS_HOURS}"
+	printf "$TWO_C" " - thoses slices as hours:" "${TWEN_SLICES_AS_HOURS}"
 	seperator "="
 
 	printf "$ONE_C" "actions:"



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/1965a2beb8d1ab3f14c68a8b101ed45f8d57f49a

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/1965a2beb8d1ab3f14c68a8b101ed45f8d57f49a
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/20230616/8619eafe/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list