Browse Source

Wrong percentage calculation in ffx-backup.py...

Yeah, sometimes I'm dumb. D'oh.
Thomas Jost 13 years ago
parent
commit
c44c163ae6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ffx-backup.py

+ 1
- 1
ffx-backup.py View File

@@ -114,7 +114,7 @@ if options.fd_user is not None and options.fd_pass is not None:
114 114
 
115 115
     def cb(sent, total):
116 116
         if total < 0:
117
-            print "Upload: %.4f %%" % (float(sent)/float(archive_size))
117
+            print "Upload: %.2f %%" % (100.*float(sent)/float(archive_size))
118 118
     FileDropper.upload_callback = cb
119 119
 
120 120
     fd = FileDropper.FileDropper()

Loading…
Cancel
Save