We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa498f5 commit 8548afaCopy full SHA for 8548afa
src/archive.c
@@ -168,6 +168,14 @@ static void show_progress(double per)
168
if (rurima_global_config.no_progress) {
169
return;
170
}
171
+ if (per < 0.0 || per > 1.0) {
172
+ return;
173
+ }
174
+ static double last_per = 0.0;
175
+ if (per - last_per < 0.005 && per < 1.0) {
176
177
178
+ last_per = per;
179
struct winsize size;
180
ioctl(STDOUT_FILENO, TIOCGWINSZ, &size);
181
unsigned short width = size.ws_col - 10;
@@ -188,6 +196,7 @@ static void show_progress_with_line(float per, int line)
188
196
{
189
197
/*
190
198
* Show progress bar.
199
+ * Callback function for cth_exec_with_file_input().
191
200
*/
192
201
193
202
0 commit comments