aboutsummaryrefslogtreecommitdiffstats
path: root/passcheck.py
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-01-21 12:32:16 +0100
committerMattias Andrée <maandree@operamail.com>2014-01-21 12:32:16 +0100
commit4ff665a288cf08bc4603b23407911950f2604fec (patch)
treefacd3e955800f04edd9b8249de890ece15e6e176 /passcheck.py
parentmetrics fix (diff)
downloadpasscheck-4ff665a288cf08bc4603b23407911950f2604fec.tar.gz
passcheck-4ff665a288cf08bc4603b23407911950f2604fec.tar.bz2
passcheck-4ff665a288cf08bc4603b23407911950f2604fec.tar.xz
new weight for distances
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'passcheck.py')
-rwxr-xr-xpasscheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/passcheck.py b/passcheck.py
index c9b0106..c7f81f1 100755
--- a/passcheck.py
+++ b/passcheck.py
@@ -96,7 +96,7 @@ def evaluate(data):
r = 3
classes[r - 1] += 1
if last is not None:
- r = distance(c, last) / 5
+ r = distance(c, last)
rc += r ** 0.5
last = c
if rc >= 0: