Fix download progress for popup title user driver

This commit is contained in:
Zorg committed 2016-08-13 09:30:40 -04:00
1 parent 3c2875602e
commit f65f4beda8
1 file changed
+1 -1
+1 -1
View File
@@ -276,7 +276,7 @@
dispatch_async(dispatch_get_main_queue(), ^{
self.contentLengthDownloaded += length;
double progress = (double)self.contentLengthDownloaded / self.expectedContentLength;
[self addUpdateButtonWithTitle:[NSString stringWithFormat:@"Downloading (%d%%)", (int)progress] action:nil];
[self addUpdateButtonWithTitle:[NSString stringWithFormat:@"Downloading (%0.0f%%)", progress * 100] action:nil];
});
}