# HG changeset patch # User masneyb # Date 1099354749 0 # Node ID 89216879202f8ae00d88bbfc76681834ee2d5bc1 # Parent 0e4ca3c8b9cf29f4562a603ff9a26492dba78e4d 2004-11-1 Brian Masney * src/gtk/transfer.c (update_file_status) - if the % transferred goes over 100%, then set the update string to unknown percentage transfered. This will occur whenever the reported transfer size is different than what is actually being transfered. This occurs whenever a symlink is being transfered diff -r 0e4ca3c8b9cf -r 89216879202f ChangeLog --- a/ChangeLog Mon Nov 01 11:07:29 2004 +0000 +++ b/ChangeLog Tue Nov 02 00:19:09 2004 +0000 @@ -1,4 +1,10 @@ 2004-11-1 Brian Masney + * src/gtk/transfer.c (update_file_status) - if the % transferred goes + over 100%, then set the update string to unknown percentage transfered. + This will occur whenever the reported transfer size is different than + what is actually being transfered. This occurs whenever a symlink is + being transfered + * lib/protocols.c (gftp_parse_ls_novell) - fixes for parsing directory listings that have a space in their username @@ -2979,7 +2985,7 @@ * cvsclean - added this script - * *.[ch] - added $Id: ChangeLog,v 1.351 2004/11/01 11:07:29 masneyb Exp $ tags + * *.[ch] - added $Id: ChangeLog,v 1.352 2004/11/02 00:19:09 masneyb Exp $ tags * debian/* - updated files from Debian maintainer diff -r 0e4ca3c8b9cf -r 89216879202f src/gtk/transfer.c --- a/src/gtk/transfer.c Mon Nov 01 11:07:29 2004 +0000 +++ b/src/gtk/transfer.c Tue Nov 02 00:19:09 2004 +0000 @@ -721,7 +721,12 @@ else pcent = 0; - g_snprintf (totstr, sizeof (totstr), + if (pcent > 100) + g_snprintf (totstr, sizeof (totstr), + _("Unknown percentage complete. (File %ld of %ld)"), + tdata->current_file_number, tdata->numdirs + tdata->numfiles); + else + g_snprintf (totstr, sizeof (totstr), _("%d%% complete, %02d:%02d:%02d est. time remaining. (File %ld of %ld)"), pcent, hours, mins, secs, tdata->current_file_number, tdata->numdirs + tdata->numfiles);