Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
166aa723
Commit
166aa723
authored
Jan 25, 2000
by
Andrew Tridgell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch from David Murn to make sure the final 100% is always printed
when using --progress
parent
f9f6184f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
match.c
match.c
+1
-1
receiver.c
receiver.c
+1
-1
util.c
util.c
+2
-2
No files found.
match.c
View file @
166aa723
...
...
@@ -122,7 +122,7 @@ static void matched(int f,struct sum_struct *s,struct map_struct *buf,
if
(
buf
)
show_progress
(
last_match
,
buf
->
file_size
);
if
(
i
==
-
1
)
end_progress
();
if
(
i
==
-
1
)
end_progress
(
buf
->
file_size
);
}
...
...
receiver.c
View file @
166aa723
...
...
@@ -269,7 +269,7 @@ static int receive_data(int f_in,struct map_struct *buf,int fd,char *fname,
offset
+=
len
;
}
end_progress
();
end_progress
(
total_size
);
if
(
fd
!=
-
1
&&
offset
>
0
&&
sparse_end
(
fd
)
!=
0
)
{
rprintf
(
FERROR
,
"write failed on %s : %s
\n
"
,
...
...
util.c
View file @
166aa723
...
...
@@ -767,12 +767,12 @@ int u_strcmp(const char *cs1, const char *cs2)
static
OFF_T
last_ofs
;
void
end_progress
(
void
)
void
end_progress
(
OFF_T
size
)
{
extern
int
do_progress
,
am_server
;
if
(
do_progress
&&
!
am_server
)
{
rprintf
(
FINFO
,
"
\n
"
);
rprintf
(
FINFO
,
"
%.0f (100%%)
\n
"
,
(
double
)
size
);
}
last_ofs
=
0
;
}
...
...
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