Fix statistic read and write.

PR:		ports/70104
Submitted by:	maintainer
This commit is contained in:
Kirill Ponomarev 2004-08-07 06:59:53 +00:00
parent 631deef911
commit bbc1787d3d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=115550
3 changed files with 31 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= bforce
PORTVERSION= 0.22.8.7
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= comms
MASTER_SITES= http://kst.spb.ru/bforce/
PKGNAMESUFFIX= -kst

View File

@ -0,0 +1,10 @@
--- bfutil/bfstat.c.orig Thu Nov 21 23:23:00 2002
+++ bfutil/bfstat.c Sat Aug 7 02:20:35 2004
@@ -17,6 +17,7 @@
#include "logger.h"
#include "util.h"
#include "outbound.h"
+#include "session.h"
/*
* Command line options storage structure

View File

@ -0,0 +1,20 @@
--- bforce/sess_stat.c.old Sat Aug 7 02:06:26 2004
+++ bforce/sess_stat.c Sat Aug 7 02:11:29 2004
@@ -75,7 +75,7 @@
memset(stat, '\0', sizeof(s_sess_stat));
- fscanf(fp, "%u %u %u %u %u %lu %lu %lu %lu",
+ fscanf(fp, "%u %u %u %u %u %u %lu %lu %lu %lu",
(unsigned int *) &stat->tries,
(unsigned int *) &stat->tries_noconn,
(unsigned int *) &stat->tries_noansw,
@@ -98,7 +98,7 @@
if( fseek(fp, 0, SEEK_SET) == -1 )
return -1;
- fprintf(fp, "%u %u %u %u %u %lu %lu %lu %lu",
+ fprintf(fp, "%u %u %u %u %u %u %lu %lu %lu %lu",
(unsigned int) stat->tries,
(unsigned int) stat->tries_noconn,
(unsigned int) stat->tries_noansw,