changeset 602:89216879202f

2004-11-1 Brian Masney <masneyb@gftp.org> * 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
author masneyb
date Tue, 02 Nov 2004 00:19:09 +0000
parents 0e4ca3c8b9cf
children 76d372913c71
files ChangeLog src/gtk/transfer.c
diffstat 2 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <masneyb@gftp.org>
+	* 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
 
--- 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);