From f937e68df176dbadcdceacbbb20e57612af90d2e Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 8 Dec 2003 23:11:55 +0000
Subject: [PATCH] Show bytes transferred when file size unavailable.

---
 src/sbbs3/install/sbbsinst.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/sbbs3/install/sbbsinst.c b/src/sbbs3/install/sbbsinst.c
index 8a65de4bba..c31eecb130 100644
--- a/src/sbbs3/install/sbbsinst.c
+++ b/src/sbbs3/install/sbbsinst.c
@@ -614,7 +614,7 @@ void install_sbbs(dist_t *dist,struct server_ent_t *server)  {
 						}
 					}
 				}
-				printf("Downloading %s     ",url);
+				printf("Downloading %s           ",url);
 				offset=0;
 				while((ret1=read(remote,buf,sizeof(buf)))>=0)  {
 					ret2=write(fout,buf,ret1);
@@ -626,7 +626,9 @@ void install_sbbs(dist_t *dist,struct server_ent_t *server)  {
 					}
 					offset+=ret2;
 					if(flen)
-						printf("\b\b\b\b%3lu%%",(long)(((float)offset/(float)flen)*100.0));
+						printf("\b\b\b\b\b\b\b\b\b\b%3lu%%      ",(long)(((float)offset/(float)flen)*100.0));
+					else
+						printf("\b\b\b\b\b\b\b\b\b\b%10lu",offset);
 					fflush(stdout);
 				}
 				printf("\n");
-- 
GitLab