Fix lastlog sorting (Janne Snabb)

git-svn-id: https://kippo.googlecode.com/svn/trunk@147 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2010-06-29 19:13:56 +00:00
parent 9b6677c509
commit 59eba484a5

View File

@@ -14,7 +14,7 @@ class command_last(HoneyPotCommand):
db = anydbm.open('%s/lastlog.db' % \
config().get('honeypot', 'data_path'), 'c')
count = 0
for k in sorted(db.keys(), reverse=True):
for k in sorted(db.keys(), key=int, reverse=True):
self.writeln(db[k])
count += 1
if count >= 25: