[BACK]Return to util.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ftp

Diff for /src/usr.bin/ftp/util.c between version 1.28 and 1.29

version 1.28, 2002/02/19 18:38:01 version 1.29, 2002/03/30 17:45:44
Line 665 
Line 665 
         off_t cursize, abbrevsize;          off_t cursize, abbrevsize;
         double elapsed;          double elapsed;
         int ratio, barlength, i, remaining;          int ratio, barlength, i, remaining;
         char buf[256];          char buf[512];
   
         if (flag == -1) {          if (flag == -1) {
                 (void)gettimeofday(&start, (struct timezone *)0);                  (void)gettimeofday(&start, (struct timezone *)0);
Line 690 
Line 690 
                 i = barlength * ratio / 100;                  i = barlength * ratio / 100;
                 snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),                  snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf),
                     "|%.*s%*s|", i,                      "|%.*s%*s|", i,
 "*****************************************************************************"                      "*******************************************************"
 "*****************************************************************************",                      "*******************************************************"
                       "*******************************************************"
                       "*******************************************************"
                       "*******************************************************"
                       "*******************************************************"
                       "*******************************************************",
                     barlength - i, "");                      barlength - i, "");
         }          }
   

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29