From 8d6db8cd8bbd36c8887b73f6a1af0c834e0b38a7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Sep 2024 08:47:06 +0200 Subject: [PATCH] scripts/delta: output bugfixes/day --- scripts/delta | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/delta b/scripts/delta index 8f99901e24..43bc25ce1b 100755 --- a/scripts/delta +++ b/scripts/delta @@ -140,9 +140,9 @@ close(F); # Produce the summary print "== Since $start $taggednice ==\n"; +my $days = $elapsed / 3600 / 24; printf "Elapsed time: %.1f days (total %d)\n", - $elapsed / 3600 / 24, - $total / 3600 / 24; + $days, $total / 3600 / 24; printf "Commits: %d (total %d)\n", $commits, $acommits; printf "Commit authors: %d, %d new (total %d)\n", @@ -156,7 +156,8 @@ printf "New curl_easy_setopt() options: %d (total %d)\n", printf "New command line options: %d (total %d)\n", $noptions, $aoptions; printf "Changes logged: %d\n", $numchanges; -printf "Bugfixes logged: %d\n", $numbugfixes; +printf "Bugfixes logged: %d (%.2f per day)\n", + $numbugfixes, $numbugfixes / $days; printf "Added files: %d (total %d)\n", $creates, $afiles; printf "Deleted files: %d (delta: %d)\n", $deletes, -- 2.47.3