diff options
| author | Will Hawkins <[email protected]> | 2024-01-07 15:43:48 -0500 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2024-01-07 15:50:20 -0500 |
| commit | c5e0bce882b049718692fbc5e43e01a3cdfb1f01 (patch) | |
| tree | 70b89ed7434fabf6651ea8fce2e331979277a0d3 /networkQuality.go | |
| parent | 044535862f1f4c4bae00efaade33f3a59e9234d6 (diff) | |
Relabel Working-Conditions Effect
Change how the effect of the working conditions is calculated and
presented to the user.
Signed-off-by: Will Hawkins <[email protected]>
Diffstat (limited to 'networkQuality.go')
| -rw-r--r-- | networkQuality.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networkQuality.go b/networkQuality.go index f0b981c..355e1b3 100644 --- a/networkQuality.go +++ b/networkQuality.go @@ -1196,11 +1196,11 @@ func main() { if baselineRpm == nil { fmt.Printf("User requested relative RPM calculation but an unloaded RPM was not calculated.") } else { - relativeRpmFactorP := utilities.AbsPercentDifference(result.PNRpm, baselineRpm.PNRpm) - relativeRpmFactorTM := utilities.AbsPercentDifference(result.MeanRpm, baselineRpm.MeanRpm) - fmt.Printf("Working Conditions RPM Effect: %5.0f%% (P%d)\n", + relativeRpmFactorP := (result.PNRpm / baselineRpm.PNRpm) * 100.0 + relativeRpmFactorTM := (result.MeanRpm / baselineRpm.MeanRpm) * 100.0 + fmt.Printf("Working-Conditions Effect: Final RPM is %5.0f%% of baseline RPM (P%d)\n", relativeRpmFactorP, specParameters.Percentile) - fmt.Printf("Working Conditions RPM Effect: %5.0f%% (Single-Sided %v%% Trimmed Mean)\n", + fmt.Printf("Working-Conditions Effect: Final RPM is %5.0f%% of baseline RPM (Single-Sided %v%% Trimmed Mean)\n", relativeRpmFactorTM, specParameters.TrimmedMeanPct) } } |
