Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
673bf7df
Commit
673bf7df
authored
May 30, 2021
by
Rob Swindell
💬
Browse files
File list creation scan progress meter display.
parent
df49b436
Pipeline
#2329
passed with stage
in 8 minutes and 50 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/sbbs3/tmp_xfer.cpp
src/sbbs3/tmp_xfer.cpp
+5
-3
No files found.
src/sbbs3/tmp_xfer.cpp
View file @
673bf7df
...
...
@@ -56,11 +56,12 @@ ulong sbbs_t::create_filelist(const char *name, long mode)
if
(
mode
&
FL_ULTIME
)
{
fprintf
(
fp
,
"New files since: %s
\r\n
"
,
timestr
(
ns_time
));
}
unsigned
total_dirs
=
0
;
for
(
i
=
0
;
i
<
usrlibs
;
i
++
)
total_dirs
+=
usrdirs
[
i
];
for
(
i
=
j
=
d
=
0
;
i
<
usrlibs
;
i
++
)
{
for
(
j
=
0
;
j
<
usrdirs
[
i
];
j
++
,
d
++
)
{
outchar
(
'.'
);
if
(
d
&&
!
(
d
%
5
))
bputs
(
"
\b\b\b\b\b
\b\b\b\b\b
"
);
progress
(
text
[
Scanning
],
d
,
total_dirs
,
10
);
if
(
mode
&
FL_ULTIME
/* New-scan */
&&
(
cfg
.
lib
[
usrlib
[
i
]]
->
offline_dir
==
usrdir
[
i
][
j
]
||
cfg
.
dir
[
usrdir
[
i
][
j
]]
->
misc
&
DIR_NOSCAN
))
...
...
@@ -73,6 +74,7 @@ ulong sbbs_t::create_filelist(const char *name, long mode)
if
(
j
<
usrdirs
[
i
])
break
;
}
progress
(
text
[
Done
],
d
,
total_dirs
);
if
(
k
>
1
)
{
fprintf
(
fp
,
"
\r\n
%ld Files Listed.
\r\n
"
,
k
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment