Fixbug Round acurate

This commit is contained in:
Andros Fenollosa 2017-03-21 11:39:07 +01:00
parent 26ef41bfac
commit c70ed2bbf5
2 changed files with 3 additions and 3 deletions

View File

@ -11,13 +11,13 @@ and Python 3.
# Use # Use
```bash ```bash
python guetzli-recursively.py [folder] python3 guetzli-recursively.py [folder]
``` ```
## Example ## Example
```bash ```bash
python guetzli-recursively.py img python3 guetzli-recursively.py img
``` ```
out out

View File

@ -38,6 +38,6 @@ for dirpath, dirnames, files in walk(top_dir):
pass pass
# Move temp to source # Move temp to source
rename(url_out, url) rename(url_out, url)
print('Save ' + str(100 - size_acurate) + '%') print('Save ' + str(round(100 - size_acurate, 2)) + '%')
else: else:
print('It is not necessary to optimize') print('It is not necessary to optimize')