Displaying 11 results from an estimated 11 matches for "cursiz".
Did you mean:
cursize
2012 Feb 14
1
Filling out a data frame row by row.... slow!
I'm reading a file and using the file to populate a data frame. The way the
file is laid out, I need to fill in the data frame one row at a time.
When I start reading my file, I don't know how many rows I will need. It's
on the order of a million.
Being mindful of the time expense of reallocation, I decided on a strategy
of doubling the data frame size every time I needed to expand
2002 Feb 06
2
SFTP Status Bar..
...ber 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);
+ lastupdate = *start;
+ lastsize = 0;
+ }
+ if (foregroundproc() == 0)
+ return;
+
+ (void)...
2002 Jan 30
1
Quick sftp status indicator.
...ore 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, (struct timezone *) 0);
+ lastupdate = start;
+ lastsize = 0;
+ }
+ if (foregroundproc() == 0)
+ return;
+
+ (void) gettimeofday(&now, (struct timez...
2002 Feb 02
0
Version two of progressbar for scp/sftp
...s 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);
+ lastupdate = *start;
+ lastsize = 0;
+ }
+ if (foregroundproc() == 0)
+ return;
+
+ (void)...
2002 Jul 13
0
[PATCH]: scp program improved
...[[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;
+/* Functions for progress meter */
+#define MA...
2003 Apr 21
0
Fix for rcp -r
...rg, *why, *vect[1], buf[BUFSIZ], path[PATH_MAX];
>
> #define atime tv[0]
> #define mtime tv[1]
>@@ -686,21 +688,15 @@
> if (*cp++ != ' ')
> SCREWUP("size not delimited");
> if (targisdir) {
>- static char *namebuf = NULL;
>- static size_t cursize;
>- size_t need;
>-
>- need = strlen(targ) + strlen(cp) + 250;
>- if (need > cursize) {
>- if (namebuf != NULL)
>- free(namebuf);
>- if (!(namebuf = malloc(need)))
>- run_err("%s", strerror(errno));
>- cursize = need;
>+ if (strle...
2000 Aug 24
0
patch for a few things
...Q':
+ 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%% ", cu...
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 *
2017 Aug 04
4
Filter files received on scp server
Hey,
So, I would be looking at type A. Forgive me if my understanding of how OpenSSH operates is not reflective of reality. I am assuming that, the file transfer is happening somewhat logically, with a name being known, content written, blah blah.
>From reading scp.c, it appears that, the client end at least knows the file name so I must assume the server end must be given it.
I am hoping to
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
2019 Jan 19
2
Status of SCP vulnerability
Hello,
I would like to request an update of the progress regarding fixes for the recently disclosed SCP vulnerability (CVE-2018-20685, CVE-2019-6111, CVE-2019-6109, CVE-2019-6110)
It has been stated that CVE-2018-20685 has been patched in november but there are currently no information available on the progress of patches regarding the other CVEs.
Will there be a patched release any time soon?