View | Details | Raw Unified | Return to bug 29078
Collapse All | Expand All

(-)a/misc/maintenance/touch_all_biblios.pl (-1 / +1 lines)
Lines 101-107 close($fh); Link Here
101
# Benchmarking
101
# Benchmarking
102
my $endtime = time();
102
my $endtime = time();
103
my $time = $endtime-$startime;
103
my $time = $endtime-$startime;
104
my $accuracy = ($goodcount / $totalcount) * 100; # this is a percentage
104
my $accuracy = $totalcount ? ($goodcount / $totalcount) * 100 : 0; # this is a percentage
105
my $averagetime = 0;
105
my $averagetime = 0;
106
$averagetime = $time / $totalcount if $totalcount;
106
$averagetime = $time / $totalcount if $totalcount;
107
print "Good: $goodcount, Bad: $badcount (of $totalcount) in $time seconds\n";
107
print "Good: $goodcount, Bad: $badcount (of $totalcount) in $time seconds\n";
(-)a/misc/maintenance/touch_all_items.pl (-2 / +1 lines)
Lines 109-115 close($fh); Link Here
109
# Benchmarking
109
# Benchmarking
110
my $endtime = time();
110
my $endtime = time();
111
my $time = $endtime-$startime;
111
my $time = $endtime-$startime;
112
my $accuracy = ($goodcount / $totalcount) * 100; # this is a percentage
112
my $accuracy = $totalcount ? ($goodcount / $totalcount) * 100 : 0; # this is a percentage
113
my $averagetime = 0;
113
my $averagetime = 0;
114
$averagetime = $time / $totalcount if $totalcount;
114
$averagetime = $time / $totalcount if $totalcount;
115
print "Good: $goodcount, Bad: $badcount (of $totalcount) in $time seconds\n";
115
print "Good: $goodcount, Bad: $badcount (of $totalcount) in $time seconds\n";
116
- 

Return to bug 29078