()
| 86 | int counter = 0; |
| 87 | String lastChecksum = ""; |
| 88 | @Override |
| 89 | public void tick() { |
| 90 | if (counter++ >= INTERVAL) { |
| 91 | String checksum = generateChecksum(); |
| 92 | if (!checksum.equals(lastChecksum)) { |
| 93 | String identity = programIdentities.getOrDefault(checksum, "UNKNOWN"); |
| 94 | System.out.println(checksum + "," + identity); |
| 95 | lastChecksum = checksum; |
| 96 | } |
| 97 | counter = 0; |
| 98 | for (int i=0; i < 512; i++) { |
| 99 | programRegions[i] = Math.max(0, programRegions[i] - DECAY); |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | private void readProgramIdentities() { |
| 105 | // Read from resources file |
nothing calls this directly
no test coverage detected