-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
173 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package dcron | ||
|
||
type Statistics struct { | ||
TotalTask int64 | ||
PassedTask int64 | ||
FailedTask int64 | ||
SkippedTask int64 | ||
MissedTask int64 | ||
|
||
TotalRun int64 | ||
PassedRun int64 | ||
FailedRun int64 | ||
RetriedRun int64 | ||
} | ||
|
||
func (s *Statistics) add(delta Statistics) { | ||
s.TotalTask += delta.TotalTask | ||
s.PassedTask += delta.PassedTask | ||
s.FailedTask += delta.FailedTask | ||
s.SkippedTask += delta.SkippedTask | ||
s.MissedTask += delta.MissedTask | ||
s.TotalRun += delta.TotalRun | ||
s.PassedRun += delta.PassedRun | ||
s.FailedRun += delta.FailedRun | ||
s.RetriedRun += delta.RetriedRun | ||
} |