1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

more informative jumpstat

This commit is contained in:
Joël Schaerer 2010-07-21 16:02:23 +02:00
parent 91c05b1f8c
commit 5b0b8f866e

View File

@ -134,7 +134,7 @@ elif ('--stat','') in optlist:
a.sort(key=lambda e:e[1])
for path,count in a[-100:]:
print "%.1f:\t%s" % (count,path)
print "Total key weight: %d" % sum(path_dict.values())
print "Total key weight: %d. Number of stored paths: %d" % (sum(path_dict.values()),len(a))
elif ('--import','') in optlist:
for i in open(args[-1]).readlines():
dicadd(path_dict,i[:-1])