From c70ed2bbf532356c067dae109812ed388ff55efc Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 21 Mar 2017 11:39:07 +0100 Subject: [PATCH] Fixbug Round acurate --- README.md | 4 ++-- guetzli-recursively.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index acdd68a..eee3a3e 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,13 @@ and Python 3. # Use ```bash -python guetzli-recursively.py [folder] +python3 guetzli-recursively.py [folder] ``` ## Example ```bash -python guetzli-recursively.py img +python3 guetzli-recursively.py img ``` out diff --git a/guetzli-recursively.py b/guetzli-recursively.py index 18fbe87..c196582 100644 --- a/guetzli-recursively.py +++ b/guetzli-recursively.py @@ -38,6 +38,6 @@ for dirpath, dirnames, files in walk(top_dir): pass # Move temp to source rename(url_out, url) - print('Save ' + str(100 - size_acurate) + '%') + print('Save ' + str(round(100 - size_acurate, 2)) + '%') else: print('It is not necessary to optimize')