(times []int64, identifier string)
| 14 | ) |
| 15 | |
| 16 | func cbFoundDifference(times []int64, identifier string) { // TODO: Remove this function as it is only used for statistics |
| 17 | if len(times)%2 == 0 { |
| 18 | for i := 0; i < len(times); i += 2 { |
| 19 | dif := times[i] - times[i+1] |
| 20 | if dif < int64(Config.HMDiff) { |
| 21 | msg := fmt.Sprintf("The time difference (%d) was smaller than the threshold (%d)\n", dif, Config.HMDiff) |
| 22 | PrintVerbose(msg, NoColor, 2) |
| 23 | return |
| 24 | } |
| 25 | } |
| 26 | } else { |
| 27 | msg := fmt.Sprintf("%s: len(times) mod 2 != 0\n", identifier) |
| 28 | Print(msg, Yellow) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func cbNotFoundDifference(times []int64, identifier string) { |
| 33 | if len(times)%2 == 0 { |
no test coverage detected