fix pruning

influxdb
Nils Schneider 2015-03-26 14:21:11 +01:00
parent c93d6c0192
commit 98d4618156
1 changed files with 2 additions and 2 deletions

View File

@ -22,9 +22,9 @@ def prune_nodes(nodes, now, days):
continue
lastseen = datetime.strptime(node['lastseen'], '%Y-%m-%dT%H:%M:%S')
delta = (now - lastseen).seconds
delta = (now - lastseen).days
if delta >= days * 86400:
if delta >= days:
prune.append(node_id)
for node_id in prune: