freebsd-ports/net/xferstats/files/patch-xferstats.c
Adam Weinberger 69ea23ed71 Rename net/ patch-xy patches to reflect the files they modify.
Approve by:	portmgr (not really, but one of these is modifying
		an unstaged port)
2014-07-29 01:59:16 +00:00

23 lines
589 B
C

--- xferstats.x Thu Jan 11 19:49:22 2001
+++ xferstats.c Thu Jan 11 19:50:31 2001
@@ -2486,6 +2486,7 @@
{
pointers_t * pointers;
char * default_logfile;
+ int first = 1;
/* unbuffer stdout and stderr so output isn't lost */
setbuf(stdout, NULL);
@@ -2559,10 +2560,11 @@
G_BLOW_CHUNKS();
- if (!pointers->first_ftp_line) {
+ if (first && !pointers->first_ftp_line) {
fprintf(stderr, "No data to process.\n");
exit(0);
}
+ first = 0;
generate_daily_data(pointers, pointers->first_ftp_line);
if (pointers->config->dow_traffic)