Closed st3fan closed 6 years ago
When this counter reaches MaxNumberOfPingUploadsPerDay
, all pings are queued to disk.
Oh man... good catch. I actually think this is the same issue as #95 because we check hasReachedDailyUploadLimit()
which short-circuits when we've crossed over into the next day (which would result in ONE ping getting uploaded then stopping). So, that's actually the exact place where we should be resetting the counter.
I may be missing something here that is not obvious from the code, but I only see two functions that deal with the
$PINGTYPE-dailyUploadCount
value in Storage:The first retrieves the value:
The second increments the value:
Where is the code that resets or decrements this counter?
What happens when this counter reaches
MaxNumberOfPingUploadsPerDay
(100)?