From 0caffceec8b58bc3f78c0d8ea36d2f7e9da668ec Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Mon, 3 Aug 2015 14:36:13 +0200 Subject: sqlalchemy was requesting icons everytime feed where listed so i choosed to move the icons into their own table --- scripts/probes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/probes.py') diff --git a/scripts/probes.py b/scripts/probes.py index bfad4e6e..4c632184 100644 --- a/scripts/probes.py +++ b/scripts/probes.py @@ -45,8 +45,10 @@ class FeedProbe(AbstractMuninPlugin): def execute(self): delta = datetime.now() - timedelta(minutes=LATE_AFTER + FETCH_RATE + 1) + total = FeedController().read().count() - print("feeds.value %d" % len(FeedController().list_late(delta))) + print("feeds.value %d" + % len(FeedController().list_late(delta, limit=total))) print("feeds_total.value %d" % FeedController().read().count()) -- cgit