Differences From Artifact [8b9c4a1fb2]:
- File utils/ofhttp/ProgressBar.m — part of check-in [7da1f47ece] at 2020-12-19 21:52:33 on branch trunk — ofhttp: Support for non-Unicode console output (user: js, size: 7947) [annotate] [blame] [check-ins using] [more...]
To Artifact [b2e9be3b4a]:
- File utils/ofhttp/ProgressBar.m — part of check-in [963d5e2ffb] at 2021-01-01 14:23:57 on branch trunk — Use trunc() if we don't have truncf() (user: js, size: 8003) [annotate] [blame] [check-ins using]
︙ | |||
27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | + + + + | #import "ProgressBar.h" #define GIBIBYTE (1024 * 1024 * 1024) #define MEBIBYTE (1024 * 1024) #define KIBIBYTE (1024) #define UPDATE_INTERVAL 0.1 #ifndef HAVE_TRUNCF # define truncf(x) trunc(x) #endif @implementation ProgressBar - (instancetype)initWithLength: (unsigned long long)length resumedFrom: (unsigned long long)resumedFrom useUnicode: (bool)useUnicode { self = [super init]; |
︙ |