ObjFW  History of utils/ofhttp/ProgressBar.m of e320edd7de373f7f

History of file utils/ofhttp/ProgressBar.m at check-in e320edd7de373f7f

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

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

2020-08-10
20:55
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. file: [530e773cf6] check-in: [30e8df31a0] user: js, branch: trunk, size: 7244 [annotate] [blame] [check-ins using] [diff]

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

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

2018-01-03
19:49
Update copyright notice file: [23f24c88de] check-in: [7e5c81e186] user: js, branch: trunk, size: 6898 [annotate] [blame] [check-ins using] [diff]
2017-10-22
15:05
Make Apple GCC with -Wshadow happy file: [665b1281f2] check-in: [a06354b42a] user: js, branch: trunk, size: 6875 [annotate] [blame] [check-ins using] [diff]
14:09
Make Apple GCC with -Wshadow happy file: [55d6da0b1d] check-in: [31c0f5b89e] user: js, branch: 0.90, size: 6861 [annotate] [blame] [check-ins using] [diff]
2017-10-17
00:33
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. file: [f1b2b790af] check-in: [2f4e0df8be] user: js, branch: trunk, size: 6923 [annotate] [blame] [check-ins using] [diff]

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

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

06:26
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. file: [1f06b0db97] check-in: [06bcb21fc7] user: js, branch: trunk, size: 6854 [annotate] [blame] [check-ins using] [diff]

2017-01-07
02:34
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. file: [b2906f802b] check-in: [6dff0f5922] user: js, branch: trunk, size: 5250 [annotate] [blame] [check-ins using] [diff]

2016-10-08
15:57
OFStdIOStream: Add -[columns] and -[rows] file: [dd50353974] check-in: [b317a4d56d] user: js, branch: trunk, size: 5237 [annotate] [blame] [check-ins using] [diff]
2016-05-29
18:47
Use <sys/ttycom.h> instead of <sys/termio.h> file: [6cdf6f1d25] check-in: [2e872e742c] user: js, branch: trunk, size: 5439 [annotate] [blame] [check-ins using] [diff]
2016-03-27
23:10
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. file: [d83aef3f71] check-in: [12b8a7552e] user: js, branch: trunk, size: 5441 [annotate] [blame] [check-ins using] [diff]

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

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

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

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

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