From 723b118009bf77bb1f350ba2b12f92644f4af7f3 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 8 Dec 2003 23:07:10 +0000 Subject: [PATCH] Only display downlaod status when filesize is available. --- src/sbbs3/install/sbbsinst.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/install/sbbsinst.c b/src/sbbs3/install/sbbsinst.c index 36b926d0d9..8a65de4bba 100644 --- a/src/sbbs3/install/sbbsinst.c +++ b/src/sbbs3/install/sbbsinst.c @@ -625,7 +625,8 @@ void install_sbbs(dist_t *dist,struct server_ent_t *server) { exit(EXIT_FAILURE); } offset+=ret2; - printf("\b\b\b\b%3lu%%",(long)(((float)offset/(float)flen)*100.0)); + if(flen) + printf("\b\b\b\b%3lu%%",(long)(((float)offset/(float)flen)*100.0)); fflush(stdout); } printf("\n"); -- GitLab