Skip to content

Commit 0559a91

Browse files
committed
A bug fix with the bash show-table.sh
1 parent 2c3958f commit 0559a91

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

libs/parse_results.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ function parse_results($file)
3434
}
3535

3636
foreach ($results as $fw => $data) {
37-
$results[$fw]['rps_relative'] = $data['rps'] / ($min_rps>0?:1);
38-
$results[$fw]['memory_relative'] = $data['memory'] / ($min_memory>0?:1);
39-
$results[$fw]['time_relative'] = $data['time'] / ($min_time>0?:1);
40-
$results[$fw]['file_relative'] = $data['file'] / ($min_file>0?:1);
37+
$results[$fw]['rps_relative'] = $data['rps'] / ($min_rps);
38+
$results[$fw]['memory_relative'] = $data['memory'] / ($min_memory);
39+
$results[$fw]['time_relative'] = $data['time'] / ($min_time);
40+
$results[$fw]['file_relative'] = $data['file'] / ($min_file);
4141
}
4242

4343
array_multisort(array_column($results, 'rps'), SORT_DESC, $results);

libs/show_results_table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
require __DIR__ . '/../libs/parse_results.php';
4-
require __DIR__ . '/../libs/build_table.php';
3+
require './libs/parse_results.php';
4+
require './libs/build_table.php';
55

6-
$results = parse_results(__DIR__ . '/../output/results.hello_world.log');
6+
$results = parse_results('./output/results.hello_world.log');
77

88
echo build_table($results);

0 commit comments

Comments
 (0)