ObjFW  History of utils/ofhttp/ProgressBar.m of 168b748eb88b91db

History of the file that is called utils/ofhttp/ProgressBar.m at check-in 168b748eb88b91db

2024-04-03
02:16
[df1e34afda] part of check-in [7413a728a7] Change license to LGPLv3 only (check-in: [7413a728a7] user: js, branch: trunk, size: 8301) [annotate] [blame] [check-ins using] [diff]
2024-01-02
17:17
[2718f12548] part of check-in [26ddd2e4e4] Update copyright (check-in: [26ddd2e4e4] user: js, branch: trunk, size: 8093) [annotate] [blame] [check-ins using] [diff]
2023-01-06
09:04
[234c4e6655] part of check-in [8939cbdb52] Update copyright (check-in: [8939cbdb52] user: js, branch: trunk, size: 8093) [annotate] [blame] [check-ins using] [diff]
2022-02-12
07:46
[9a2768256d] part of check-in [1a86b8175b] Update copyright (check-in: [1a86b8175b] user: js, branch: trunk, size: 8093) [annotate] [blame] [check-ins using] [diff]
2022-01-29
21:47
[495096e467] part of check-in [04d97d6ce2] Enable sockets on MiNT (check-in: [04d97d6ce2] user: js, branch: trunk, size: 8093) [annotate] [blame] [check-ins using] [diff]
2021-04-29
23:46
[55b889a4e0] part of check-in [a50ae2cc3f] ofhttp: Make GCC 5.3 happy again (check-in: [a50ae2cc3f] user: js, branch: trunk, size: 7996) [annotate] [blame] [check-ins using] [diff]
2021-04-25
11:05
[5cde87eb26] part of check-in [27103855c2] A few last renames (check-in: [27103855c2] user: js, branch: new-naming-convention, size: 8003) [annotate] [blame] [check-ins using] [diff]
2021-04-18
22:56
[df2864a1e1] part of check-in [e73c65a849] Rename all symbols marked extern (check-in: [e73c65a849] user: js, branch: new-naming-convention, size: 7876) [annotate] [blame] [check-ins using] [diff]
2021-01-02
22:06
[19044e89b4] part of check-in [27b401c7c2] Update copyright (check-in: [27b401c7c2] user: js, branch: amiga-library, size: 7858) [annotate] [blame] [check-ins using] [diff]
22:04
[3a96d93eb6] part of check-in [374e1a1bfa] Update copyright (check-in: [374e1a1bfa] user: js, branch: trunk, size: 7914) [annotate] [blame] [check-ins using] [diff]
2021-01-01
14:23
[b2e9be3b4a] part of check-in [963d5e2ffb] Use trunc() if we don't have truncf() (check-in: [963d5e2ffb] user: js, branch: trunk, size: 8003) [annotate] [blame] [check-ins using] [diff]
2020-12-19
21:52
[8b9c4a1fb2] part of check-in [7da1f47ece] ofhttp: Support for non-Unicode console output (check-in: [7da1f47ece] user: js, branch: trunk, size: 7947) [annotate] [blame] [check-ins using] [diff]
2020-08-13
21:07
[814de8c246] part of check-in [8611f48f42] OFString: Rename JSONValue to objectByParsingJSON (check-in: [8611f48f42] user: js, branch: trunk, size: 7277) [annotate] [blame] [check-ins using] [diff]
2020-08-12
20:56
[ab819ab9fe] part of check-in [d74f244ab7] Avoid using (u)intmax_t in methods

It is not guaranteed that a type encoding for it exists. (check-in: [d74f244ab7] user: js, branch: trunk, size: 7274) [annotate] [blame] [check-ins using] [diff]

2020-08-10
20:55
[530e773cf6] part of check-in [30e8df31a0] ofhttp: Average the speed over the last 10 seconds

This avoids the speed and hence also the ETA jumping like crazy on a
flaky connection. (check-in: [30e8df31a0] user: js, branch: trunk, size: 7244) [annotate] [blame] [check-ins using] [diff]

2020-04-13
15:48
[813833df71] part of check-in [8a0c5ed345] OFLocale: Allow plural scripting in fallback (check-in: [8a0c5ed345] user: js, branch: trunk, size: 7020) [annotate] [blame] [check-ins using] [diff]
2020-01-02
01:51
[cdabadff8c] part of check-in [c7f0229795] Update copyright (check-in: [c7f0229795] user: js, branch: trunk, size: 6893) [annotate] [blame] [check-ins using] [diff]
2019-03-12
23:20
[02688c475b] part of check-in [53e3ae1e45] utils: Use dot syntax (check-in: [53e3ae1e45] user: js, branch: trunk, size: 6890) [annotate] [blame] [check-ins using] [diff]
2019-01-03
19:13
[7b36a37913] part of check-in [0509d7a844] Update copyright (check-in: [0509d7a844] user: js, branch: trunk, size: 6898) [annotate] [blame] [check-ins using] [diff]
2018-07-28
18:45
[7fb0ef45e0] part of check-in [aa0384d1bf] Rename OFLocalization -> OFLocale (check-in: [aa0384d1bf] user: js, branch: trunk, size: 6892) [annotate] [blame] [check-ins using] [diff]
2018-05-26
14:46
[87361df1da] part of check-in [3c20dd5f95] Use trunc() instead of floor() in several places

floor() does not have the desired effect here when the number is
negative. (check-in: [3c20dd5f95] user: js, branch: trunk, size: 6898) [annotate] [blame] [check-ins using] [diff]

2018-01-03
19:49
[23f24c88de] part of check-in [7e5c81e186] Update copyright notice (check-in: [7e5c81e186] user: js, branch: trunk, size: 6898) [annotate] [blame] [check-ins using] [diff]
2017-10-22
15:05
[665b1281f2] part of check-in [a06354b42a] Make Apple GCC with -Wshadow happy (check-in: [a06354b42a] user: js, branch: trunk, size: 6875) [annotate] [blame] [check-ins using] [diff]
14:09
[55d6da0b1d] part of check-in [31c0f5b89e] Make Apple GCC with -Wshadow happy (check-in: [31c0f5b89e] user: js, branch: 0.90, size: 6861) [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
[f1b2b790af] part of check-in [2f4e0df8be] Do not use implicit method return types

Instead, explicitly declare them, as OF_ASSUME_NONNULL_{BEGIN,END} does
not apply to implicit return types. This means that after this commit,
all init methods have a nonnull return type, as they should have. (check-in: [2f4e0df8be] user: js, branch: trunk, size: 6923) [annotate] [blame] [check-ins using] [diff]

2017-02-27
21:57
[509373b942] part of check-in [7ffbd24169] ofhttp: Move formatting out of localized strings (check-in: [7ffbd24169] user: js, branch: trunk, size: 6909) [annotate] [blame] [check-ins using] [diff]
2017-01-09
17:36
[f001d1016e] part of check-in [44f45c2e35] Update copyright

Forgot to add 2017, even though I already did quite some changes in
2017. (check-in: [44f45c2e35] user: js, branch: trunk, size: 6860) [annotate] [blame] [check-ins using] [diff]

06:26
[1f06b0db97] part of check-in [06bcb21fc7] Add OFLocalization

This singleton gives access to all things locale, including the ability
to get localized strings.

This also adds the OF_LOCALIZED() macro. Its first argument is an ID for
the string to be localized and its second argument is the fallback
string to be used if it cannot retrieve the localized string. Following
that are variable name / value pairs to be replaced in the localized
string.

Getting translated strings is not implemented yet: Instead, it always
uses the fallback string.

This also switches ofhttp to localized strings. (check-in: [06bcb21fc7] user: js, branch: trunk, size: 6854) [annotate] [blame] [check-ins using] [diff]

2017-01-07
02:34
[b2906f802b] part of check-in [6dff0f5922] Always use "." for the decimal point

This is achieved by replacing the locale's decimal point with "." after
formatting and replacing "." with the locale's decimal point before
parsing.

To still use the decimal point from the locale for formatting, the new
flag "," is introduced to formats. This is useful for just printing a
string to the user that is not saved to a file or sent via a network.

While this is an ugly hack, there is no better way to do this other than
implementing the functionality of printf and strtod myself, as POSIX
does not specify versions of these that take a locale as an argument.
While this is a lot of work and error-prone, I will most likely end up
doing this eventually.

This commit also enables the locale in OFApplication to notice when
things break. As a nice side effect, ofhttp now uses the locale's
decimal point in its user interface. (check-in: [6dff0f5922] user: js, branch: trunk, size: 5250) [annotate] [blame] [check-ins using] [diff]

2016-10-08
15:57
[dd50353974] part of check-in [b317a4d56d] OFStdIOStream: Add -[columns] and -[rows] (check-in: [b317a4d56d] user: js, branch: trunk, size: 5237) [annotate] [blame] [check-ins using] [diff]
2016-05-29
18:47
[6cdf6f1d25] part of check-in [2e872e742c] Use <sys/ttycom.h> instead of <sys/termio.h> (check-in: [2e872e742c] user: js, branch: trunk, size: 5439) [annotate] [blame] [check-ins using] [diff]
2016-03-27
23:10
[d83aef3f71] part of check-in [12b8a7552e] Add socket support for Nintendo 3DS

This removes the port registry that existed for the Wii and instead
tries binding to random ports in a loop until it succeeds or errno is
not EADDRINUSE. This is done for the Wii and Nintendo 3DS now.

This also includes several other socket-related cleanups. (check-in: [12b8a7552e] user: js, branch: trunk, size: 5441) [annotate] [blame] [check-ins using] [diff]

2016-02-21
15:37
[e437710ddc] part of check-in [e0b9167693] Make use of C99-style for loops (check-in: [e0b9167693] user: js, branch: trunk, size: 5412) [annotate] [blame] [check-ins using] [diff]
2016-01-03
00:41
[84262304c6] part of check-in [2a27cf3000] Update copyright

While at it, also update the mail address. (check-in: [2a27cf3000] user: js, branch: trunk, size: 5409) [annotate] [blame] [check-ins using] [diff]

2015-10-10
09:18
[3f79e83b5b] part of check-in [5832ac9420] ofhttp: Fix ETA calculation for resumed files (check-in: [5832ac9420] user: js, branch: trunk, size: 5405) [annotate] [blame] [check-ins using] [diff]
2015-08-22
11:38
[ea91008bdd] part of check-in [ee6fb4df7f] utils/ofhttp: Add includes required on Solaris (check-in: [ee6fb4df7f] user: js, branch: trunk, size: 5420) [annotate] [blame] [check-ins using] [diff]
2015-06-17
22:19
[e84b0f1e4e] part of check-in [a3f24bdd18] utils/ofhttp: Make old Apple GCC happy (check-in: [a3f24bdd18] user: js, branch: trunk, size: 5340) [annotate] [blame] [check-ins using] [diff]
2015-05-31
14:56
[541aee4c03] part of check-in [00bcec95bf] utils/ofhttp: Fix two missing releases in dealloc (check-in: [00bcec95bf] user: js, branch: trunk, size: 5299) [annotate] [blame] [check-ins using] [diff]
2015-05-29
23:22
[a7f6535d56] part of check-in [3e5b766b40] utils/ofhttp: Fix a typo resulting in wrong ETA (check-in: [3e5b766b40] user: js, branch: trunk, size: 5246) [annotate] [blame] [check-ins using] [diff]
2015-05-17
01:42
[b3212f82f5] part of check-in [e4b34278f5] utils/ofhttp: Make sure bar width is >= 0 (check-in: [e4b34278f5] user: js, branch: trunk, size: 5250) [annotate] [blame] [check-ins using] [diff]
2015-05-16
23:59
[258ce39ec5] part of check-in [65681d0342] utils/ofhttp: Show ETA (check-in: [65681d0342] user: js, branch: trunk, size: 5253) [annotate] [blame] [check-ins using] [diff]
18:32
[54fb752c1d] part of check-in [84f2ba7fbc] utils/ofhttp: Get terminal width for progress bar (check-in: [84f2ba7fbc] user: js, branch: trunk, size: 4794) [annotate] [blame] [check-ins using] [diff]
2015-05-05
20:16
[7133bd835c] part of check-in [2743414e6e] utils/ofhttp: Only update BPS once per second

Calculating and updating it more frequently results in fluctuations.
The update interval of the progress bar is unchanged. (check-in: [2743414e6e] user: js, branch: trunk, size: 4555) [annotate] [blame] [check-ins using] [diff]

2015-04-26
16:06
[5e42a1538e] part of check-in [06b8800f20] utils/ofhttp: Better error output and small bugfix (check-in: [06b8800f20] user: js, branch: trunk, size: 4369) [annotate] [blame] [check-ins using] [diff]
14:57
[15aadddba2] part of check-in [336a6e129b] utils/ofhttp: Support for continuing downloads (check-in: [336a6e129b] user: js, branch: trunk, size: 4324) [annotate] [blame] [check-ins using] [diff]
12:24
Added: [c13bb41aea] part of check-in [486073790c] Add utils/ofhttp

This is a small tool to download files via HTTP(S). (check-in: [486073790c] user: js, branch: trunk, size: 4098) [annotate] [blame] [check-ins using]