search for: abbrevsize

Displaying 9 results from an estimated 9 matches for "abbrevsize".

2002 Feb 06
2
SFTP Status Bar..
...conds before xfer assumed "stalled" */ + static const char prefixes[] = " KMGTP"; + static char *progressbar = NULL; + static struct timeval *start = NULL, lastupdate; + static off_t lastsize; + static size_t progressbar_size = 0; + struct timeval now, td, wait; + off_t cursize, abbrevsize; + double elapsed; + int ratio, barlength, i, remaining; + char buf[256]; + + if (!start) { + start = xmalloc(sizeof(struct timeval)); + (void) gettimeofday(start, (struct timezone *) 0); + lastupdate = *start; + lastsize = 0; + } + if (foregroundproc() == 0) + return; + + (void) gettimeofday(...
2002 Jan 30
1
Quick sftp status indicator.
...assumed "stalled" */ + static const char prefixes[] = " KMGTP"; + static struct timeval lastupdate; + static off_t lastsize; + static u_char *progressbar = NULL; + static size_t progressbar_size = 0; + static struct timeval start; + struct timeval now, td, wait; + off_t cursize, abbrevsize; + double elapsed; + int ratio, barlength, i, remaining; + char buf[256]; + + if (flag == -1) { + (void) gettimeofday(&start, (struct timezone *) 0); + lastupdate = start; + lastsize = 0; + } + if (foregroundproc() == 0) + return; + + (void) gettimeofday(&now, (struct timezone *) 0); +...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...xfer assumed "stalled" */ + static const char prefixes[] = " KMGTP"; + static char *progressbar = NULL, file = NULL; + static struct timeval *start = NULL, lastupdate; + static off_t lastsize; + static size_t progressbar_size = 0; + struct timeval now, td, wait; + off_t cursize, abbrevsize; + double elapsed; + int ratio, barlength, i, remaining; + char buf[256]; + + if (!start) { + start = xmalloc(sizeof(struct timeval)); + (void) gettimeofday(start, (struct timezone *) 0); + lastupdate = *start; + lastsize = 0; + } + if (foregroundproc() == 0) + return; + + (void) gettimeofday(...
1999 Dec 14
2
1.2pre17 scp Input/Output error
Under OpenSSH 1.2pre17 I can duplicate and Input/Output error for scp: Conditions: pc36 is a RH6.0/i386 box. abc.co.za is a RH5.2/i386 box. (private network) openssh 1.2 pre 17 on both boxes. Line between them is a 128k leased line. It works between two 10baseT machines. If the scrollbar is active, the scp fails, if it isn't active, scp works. Note that without the scrollbar, the file gets
2002 Jul 13
0
[PATCH]: scp program improved
...]host1:]file1 [...] [[user@]host2:]file2\n"); exit(1); } @@ -1098,110 +1225,191 @@ #endif } -void -progressmeter(int flag) -{ - static const char prefixes[] = " KMGTP"; - static struct timeval lastupdate; - static off_t lastsize; - struct timeval now, td, wait; - off_t cursize, abbrevsize; - double elapsed; - int ratio, barlength, i, remaining; - char buf[512]; - - if (flag == -1) { - (void) gettimeofday(&start, (struct timezone *) 0); - lastupdate = start; - lastsize = 0; - } - if (foregroundproc() == 0) - return; +/* Functions for progress meter */ +#define MAX_PREFIXLEN 3...
2000 Jul 02
1
minor cosmetic bug
The progress metre in scp(1) breaks when the tty is too wide. This patch is the effortless fix: ########################################################################### :; diff -u openssh-2.1.1p2/scp.c openssh-2.1.1p2+jhc/scp.c --- openssh-2.1.1p2+jhc/scp.c Thu Jun 22 07:32:32 2000 +++ openssh-2.1.1p2/scp.c Sat Jul 1 22:15:36 2000 @@ -1176,8 +1176,9 @@ i = barlength *
1999 Nov 21
1
openssh 1.2pre13 on Linux/i386 RH4.2 problems
...sh/ssh-askpass\" -DHAVE_CONFIG_H -c scp.c -o scp.o scp.c: In function `progressmeter': scp.c:1177: `quad_t' undeclared (first use this function) scp.c:1177: (Each undeclared identifier is reported only once scp.c:1177: for each function it appears in.) scp.c:1177: parse error before `abbrevsize' scp.c:1180: warning: implicit declaration of function `timersub' Now, I am probably going to upgrade this box (for other reasons), but I do wonder if anyone else has similar problems, and if anyone is interested in fixes. -- Kind regards, Berend...
1999 Nov 19
4
ANNOUNCE: openssh-1.2pre13
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have just uploaded 1.2pre13 to http://violet.ibs.com.au/openssh/ Imporant changes: - - Fixes a single-byte buffer overrun in the PAM code. - - Quite a bit more Solaris support. EGD should work now (please test). - - Lots more autoconf options to enable Kerberos, AFS, TCP Wrappers and S/Key (all untested). - - MD5 passwords for Slackware Linux
2000 Aug 24
0
patch for a few things
...showprogress = 1; + break; case 'q': showprogress = 0; break; + case 'b': + bitspersec = 1; + break; case '?': default: usage(); *************** *** 1129,1134 **** --- 1154,1162 ---- struct timeval now, td, wait; off_t cursize, abbrevsize; double elapsed; + double rate, abbrevrate; + int j; + char b; int ratio, barlength, i, remaining; char buf[256]; *************** *** 1148,1157 **** ratio = MIN(ratio, 100); } else ratio = 100; ! snprintf(buf, sizeof(buf), "\r%-20.20s %3d%% ", curfile, ratio)...