1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

This patch corrects the printing of DCC transfer stats.

Approved by:	 MAINTAINER
This commit is contained in:
Matthew N. Dodd 2003-01-14 22:23:32 +00:00
parent fbaefa9057
commit 6a8ee6053b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73146
4 changed files with 24 additions and 2 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= epic4
PORTVERSION= 1.0.1
# Make these variables overridable for slave ports
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= irc ipv6
MASTER_SITES= ftp://ftp.epicsol.org/pub/epic/%SUBDIR%/ \
ftp://ftp.magenet.com/pub/epic/%SUBDIR%/ \

View File

@ -0,0 +1,11 @@
--- source/dcc.c.orig Mon May 6 03:36:21 2002
+++ source/dcc.c Mon May 6 03:36:44 2002
@@ -1366,7 +1366,7 @@
/*
* Figure out something sane for the xfer speed.
*/
- if (Client->bytes_sent)
+ if (act_sent)
{
strlcpy(speed, calc_speed(act_sent,
Client->starttime.tv_sec, time(NULL)), 9);

View File

@ -8,7 +8,7 @@
PORTNAME= epic4
PORTVERSION= 1.0.1
# Make these variables overridable for slave ports
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES?= irc ipv6
MASTER_SITES= ftp://ftp.epicsol.org/pub/epic/%SUBDIR%/ \
ftp://ftp.magenet.com/pub/epic/%SUBDIR%/ \

View File

@ -0,0 +1,11 @@
--- source/dcc.c.orig Mon May 6 03:36:21 2002
+++ source/dcc.c Mon May 6 03:36:44 2002
@@ -1366,7 +1366,7 @@
/*
* Figure out something sane for the xfer speed.
*/
- if (Client->bytes_sent)
+ if (act_sent)
{
strlcpy(speed, calc_speed(act_sent,
Client->starttime.tv_sec, time(NULL)), 9);