Skip to content

Commit

Permalink
fix: fix total length output issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 22, 2020
1 parent ec9660d commit a4a3d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/evaluate.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func buildOutput(result evaluator.EvaluateModel) {
normalMethodCount := result.Summary.NormalMethodCount
table.Append([]string{"Average Method Length", strconv.Itoa(totalLength), "Without Getter/Setter", strconv.Itoa(normalMethodCount), Rate(totalLength, normalMethodCount)})

table.Append([]string{"Method Length Std Dev / 标准差", strconv.Itoa(methodCount), "Method", "-", fmt.Sprintf("%f", result.Summary.MethodLengthStdDeviation)})
table.Append([]string{"Method Length Std Dev / 标准差", strconv.Itoa(totalLength), "Method", "-", fmt.Sprintf("%f", result.Summary.MethodLengthStdDeviation)})

table.Render()
}
Expand Down

0 comments on commit a4a3d47

Please sign in to comment.