summaryrefslogtreecommitdiff
blob: b3ebb90b33e1fac966fff731e303d0937202d8ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- tiobench.pl	2005-02-23 00:21:33.000000000 +0100
+++ tiobench.pl	2005-03-15 18:11:19.000000000 +0100
@@ -168,6 +168,8 @@
                   $stat_data{$identifier}{$thread}{$size}{$block}{$field}{'stime'} ) / 
                   $stat_data{$identifier}{$thread}{$size}{$block}{$field}{'time'};
                $stat_data{$identifier}{$thread}{$size}{$block}{$field}{'cpueff'} =
+                  ($stat_data{$identifier}{$thread}{$size}{$block}{$field}{'cpu'} == 0) ?
+                  '0' :
                   ($stat_data{$identifier}{$thread}{$size}{$block}{$field}{'rate'} /
                   ($stat_data{$identifier}{$thread}{$size}{$block}{$field}{'cpu'}/100));
             }
@@ -196,6 +198,9 @@
 $report{'SEQ_WRITES'}   = "Sequential Writes";
 $report{'RAND_WRITES'}  = "Random Writes";
 
+# The top is the same for all 4 reports
+$^ = 'SEQ_READS_TOP';
+
 foreach my $title ('SEQ_READS', 'RAND_READS', 'SEQ_WRITES', 'RAND_WRITES') {
    $-=0; $~="$title"; $^L=''; # reporting variables
    print "\n$report{$title}\n";