# | Line 224 | Line 224 | paint( /* compute and paint a rectangle */ | |
---|---|---|
224 | flushintvl = nproc*niflush/(ambounce+1); | |
225 | else | |
226 | flushintvl = nproc*WFLUSH/(ambounce+1); | |
227 | + | if (lastflush > counter) |
228 | + | lastflush = 0; /* counter wrapped */ |
229 | ||
230 | if (counter - lastflush >= flushintvl) { | |
231 | lastflush = counter; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |