Displaying 6 results from an estimated 6 matches for "print_tim".
Did you mean:
print_time
2001 Nov 29
1
patch from faith@alephnull to add rate indicator to --progress
...sure I'm using the right options to
provide optimal throughput.]
--- rsync-2.4.6/util.c.rik Tue Sep 5 22:46:43 2000
+++ rsync-2.4.6/util.c Fri Oct 5 09:19:35 2001
@@ -835,28 +835,70 @@
return (int)*s1 - (int)*s2;
}
-static OFF_T last_ofs;
+static OFF_T last_ofs;
+static struct timeval print_time;
+static struct timeval start_time;
+static OFF_T start_ofs;
+
+static unsigned long msdiff(struct timeval *t1, struct timeval *t2)
+{
+ return (t2->tv_sec - t1->tv_sec) * 1000
+ + (t2->tv_usec - t1->tv_usec) / 1000;
+}
+
+static void rprint_progress(OFF_T ofs, OFF_T size, s...
2004 Feb 27
2
patch: better progress meter
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/rsync/attachments/20040227/923b87ee/PGP.bin
2011 Apr 02
2
[patch] ~420 seconds in cpu_detect
...uot;sizeof(cpu->vendor): %d\n", sizeof(cpu->vendor));
printf("sizeof(cpu->model): %d\n", sizeof(cpu->model));
cpu->family = c->x86;
cpu->vendor_id = c->x86_vendor;
cpu->model_id = c->x86_model;
cpu->stepping = c->x86_mask;
print_timer(et, "family-vendor-model-stepping");
/* THIS TAKES 420 seconds
it blows up cuz c->x86_vendor is 255, > X86_VENDOR_NUM,
so code is overrunning memory - lucky result wasnt more severe.
strlcpy(cpu->vendor, cpu_devs[c->x86_vendor]->c_vendor,...
2011 Apr 02
2
[patch] ~420 seconds in cpu_detect
...uot;sizeof(cpu->vendor): %d\n", sizeof(cpu->vendor));
printf("sizeof(cpu->model): %d\n", sizeof(cpu->model));
cpu->family = c->x86;
cpu->vendor_id = c->x86_vendor;
cpu->model_id = c->x86_model;
cpu->stepping = c->x86_mask;
print_timer(et, "family-vendor-model-stepping");
/* THIS TAKES 420 seconds
it blows up cuz c->x86_vendor is 255, > X86_VENDOR_NUM,
so code is overrunning memory - lucky result wasnt more severe.
strlcpy(cpu->vendor, cpu_devs[c->x86_vendor]->c_vendor,...
2002 Apr 20
0
14676 100% 0.00kB/s 0:00:00
...){
gettimeofday(&now, NULL);
if (!start_time.tv_sec && !start_time.tv_usec) {
start_time.tv_sec = now.tv_sec;
start_time.tv_usec = now.tv_usec;
start_ofs = ofs;
}
if((msdiff(&print_time, &now) > 250){
rprint_progress(ofs, size, &now, False);
last_ofs = ofs;
print_time.tv_sec = now.tv_sec;
print_time.tv_usec = now.tv_usec;
}
}
}
Disclaimer: I've not tested these modification...
2016 Aug 22
12
[Bug 97438] New: Running a lot of Firefox instances causes kernel page fault.
...05ef7d>] no_context+0x10d/0x360
[ 598.402282] [<ffffffff8105f247>] __bad_area_nosemaphore+0x77/0x1b0
[ 598.402285] [<ffffffff8105f38f>] bad_area_nosemaphore+0xf/0x20
[ 598.402287] [<ffffffff8105fa38>] __do_page_fault+0x88/0x510
[ 598.402291] [<ffffffff810ba2b7>] ? print_time.part.13+0x67/0x90
[ 598.402293] [<ffffffff810ba341>] ? print_prefix+0x61/0xa0
[ 598.402295] [<ffffffff8105fee2>] do_page_fault+0x22/0x30
[ 598.402298] [<ffffffff8182ae88>] page_fault+0x28/0x30
[ 598.402303] [<ffffffff813a73d1>] ? iowrite32+0x31/0x40
[ 598.402322]...