File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type StatisticsTime struct {
1919 //AvgTime time.Duration
2020 MaxTime time.Duration
2121 MinTime time.Duration
22- Count int64
22+ Count int64
2323}
2424
2525func (stat * StatisticsTime ) AddStatisticsTime (src * StatisticsTime ) {
@@ -43,7 +43,7 @@ func (stat *StatisticsTime) SetTime(src time.Duration) {
4343 stat .MaxTime = src
4444 stat .MinTime = src
4545 } else {
46- stat .SumTime .Add (decimal .NewFromInt (int64 (src )))
46+ stat .SumTime = stat . SumTime .Add (decimal .NewFromInt (int64 (src )))
4747 if src > stat .MaxTime {
4848 stat .MaxTime = src
4949 }
@@ -59,4 +59,4 @@ func (stat *StatisticsTime) GetAvg() time.Duration {
5959 return 0
6060 }
6161 return time .Duration (stat .SumTime .Div (decimal .NewFromInt (stat .Count )).IntPart ())
62- }
62+ }
You can’t perform that action at this time.
0 commit comments