fix wrap around glitch

Signed-off-by: John Crispin <[email protected]>
This commit is contained in:
John Crispin
2021-10-22 10:33:24 +02:00
parent 5115b6ff41
commit b5a68ca17b
+2 -1
View File
@@ -141,7 +141,8 @@ static int get_counter_delta(__u32 new, __u32 old)
else
delta = new - old;
return delta;
return delta > 0 ? delta : 0;
}
void