Skip to content

Commit a4a3d47

Browse files
committed
fix: fix total length output issues
1 parent ec9660d commit a4a3d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/evaluate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func buildOutput(result evaluator.EvaluateModel) {
7272
normalMethodCount := result.Summary.NormalMethodCount
7373
table.Append([]string{"Average Method Length", strconv.Itoa(totalLength), "Without Getter/Setter", strconv.Itoa(normalMethodCount), Rate(totalLength, normalMethodCount)})
7474

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

7777
table.Render()
7878
}

0 commit comments

Comments
 (0)