diff options
| author | Scott Ostler <scottbot9000@gmail.com> | 2010-11-06 21:17:41 -0400 |
|---|---|---|
| committer | Scott Ostler <scottbot9000@gmail.com> | 2010-11-06 21:17:41 -0400 |
| commit | 2880c132823d7933a32b36c2dd5f251c43bc4856 (patch) | |
| tree | 0118be12f0136fd5b73ca8e4489f6fe8b14bc998 | |
| parent | 83845fccdfbde89f07bc670288cce2cf9f60d3b6 (diff) | |
dailyimgupload: switched file size ints to floats
| -rw-r--r-- | scripts/dailyimgupload.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/dailyimgupload.py b/scripts/dailyimgupload.py index 4bf5f30..186614d 100644 --- a/scripts/dailyimgupload.py +++ b/scripts/dailyimgupload.py @@ -26,7 +26,7 @@ def directory_size(path): """
FROM: http://stackoverflow.com/questions/1392413/calculating-a-directory-size-using-python
"""
- total_size = 0
+ total_size = 0.0
for dirpath, dirnames, filenames in os.walk(path):
for f in filenames:
fp = os.path.join(dirpath, f)
@@ -59,7 +59,7 @@ def upload_dirs_until_free(path, target_free_mbs, dryrun): dirs_uploaded = 0
files_uploaded = 0
cur_freespace = starting_freespace
- reclaimed_space = 0
+ reclaimed_space = 0.0
error = False
directory_list = get_directory_list(path)
|
