Displaying 5 results from an estimated 5 matches for "lastsiz".
Did you mean:
lastsize
2002 Feb 06
2
SFTP Status Bar..
...(off_t statbytes, off_t totalbytes, char *filename)
+{
+#define STALLTIME 5 /* number of seconds 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);
+ lastup...
2002 Jan 30
1
Quick sftp status indicator.
...pgrp == pgrp));
+}
+
+void
+progressmeter(int flag, off_t statbytes, off_t totalbytes, char *curfile)
+{
+#define STALLTIME 5 /* number of seconds before xfer 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,...
2002 Jul 13
0
[PATCH]: scp program improved
...-R rate] [-o option]\n"
" [[user@]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...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...tes, off_t totalbytes, char *filename)
+{
+#define STALLTIME 5 /* number of seconds before 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);
+ lastup...
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