Currently any non-kIsRate counter that follows a kIsRate counter gets printed to the console with the lastly set unit, either u := 's' or u := '/s' because the following if statement has no else branch that assigns u := '' for non-kIsRate counters:
|
if kIsRate in result.counters[i].counter.flags then |
|
if kInvert in result.counters[i].counter.flags then |
|
u := 's' |
|
else |
|
u := '/s'; |
Proposed fix: "added else branch to assign u := '' for non-kIsRate counters on console output"
if kIsRate in result.counters[i].counter.flags then
if kInvert in result.counters[i].counter.flags then
u := 's'
else
u := '/s'
else
u := '';
Currently any non-
kIsRatecounter that follows akIsRatecounter gets printed to the console with the lastly set unit, eitheru := 's'oru := '/s'because the followingifstatement has noelsebranch that assignsu := ''for non-kIsRatecounters:benchmark/Spring.Benchmark.pas
Lines 4306 to 4310 in 7c4b8d9
Proposed fix: "added
elsebranch to assignu := ''for non-kIsRatecounters on console output"