]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
scripts/delta: output bugfixes/day
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Sep 2024 06:47:06 +0000 (08:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Sep 2024 06:47:06 +0000 (08:47 +0200)
scripts/delta

index 8f99901e2459fe8e35700a8a5262be20854e140a..43bc25ce1bc0c2ca817507f95dd31bcdb89ad177 100755 (executable)
@@ -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,