showstat: warning about eviction

This commit is contained in:
Klaas van Schelven
2025-02-17 13:41:21 +01:00
parent b4bf6d01c3
commit 97e54868c9

View File

@@ -29,6 +29,8 @@ class Command(BaseCommand):
print(Event.objects.all().count())
if stat == "digestion_speed":
print("WARNING: when eviction is enabled, the numbers will be wrong")
for window in [1, 10, 30, 60, 5 * 60, 60 * 60, 24 * 60 * 60]:
now = timezone.now()
with durable_atomic():