More small fixes for mbfido web
This commit is contained in:
parent
7b2058ecd7
commit
830fc26f5c
@ -4617,6 +4617,8 @@ v0.33.20 10-Feb-2002
|
|||||||
Added support for ext3 filesystem in diskspace check.
|
Added support for ext3 filesystem in diskspace check.
|
||||||
Fixed lharc archives return code to LHA.
|
Fixed lharc archives return code to LHA.
|
||||||
Changed mkprod.awk script to support Debian Woody.
|
Changed mkprod.awk script to support Debian Woody.
|
||||||
|
The aka2str function now onmits the @ if there is no domain
|
||||||
|
information.
|
||||||
|
|
||||||
clcomm.a
|
clcomm.a
|
||||||
Added counter for mailer TCP/IP sessions.
|
Added counter for mailer TCP/IP sessions.
|
||||||
|
13
lib/faddr.c
13
lib/faddr.c
@ -1,11 +1,10 @@
|
|||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
*
|
*
|
||||||
* File ..................: faddr.c
|
* $Id$
|
||||||
* Purpose ...............: Fidonet Address conversions.
|
* Purpose ...............: Fidonet Address conversions.
|
||||||
* Last modification date : 18-Dec-1999
|
|
||||||
*
|
*
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
* Copyright (C) 1993-1999
|
* Copyright (C) 1993-2002
|
||||||
*
|
*
|
||||||
* Michiel Broek FIDO: 2:280/2802
|
* Michiel Broek FIDO: 2:280/2802
|
||||||
* Beekmansbos 10
|
* Beekmansbos 10
|
||||||
@ -47,11 +46,17 @@ char *aka2str(fidoaddr aka)
|
|||||||
static char result[43];
|
static char result[43];
|
||||||
|
|
||||||
result[0] = '\0';
|
result[0] = '\0';
|
||||||
|
if (strlen(aka.domain)) {
|
||||||
if (aka.point == 0)
|
if (aka.point == 0)
|
||||||
sprintf(result, "%d:%d/%d@%s", aka.zone, aka.net, aka.node, aka.domain);
|
sprintf(result, "%d:%d/%d@%s", aka.zone, aka.net, aka.node, aka.domain);
|
||||||
else
|
else
|
||||||
sprintf(result, "%d:%d/%d.%d@%s", aka.zone, aka.net, aka.node, aka.point, aka.domain);
|
sprintf(result, "%d:%d/%d.%d@%s", aka.zone, aka.net, aka.node, aka.point, aka.domain);
|
||||||
|
} else {
|
||||||
|
if (aka.point == 0)
|
||||||
|
sprintf(result, "%d:%d/%d", aka.zone, aka.net, aka.node);
|
||||||
|
else
|
||||||
|
sprintf(result, "%d:%d/%d.%d", aka.zone, aka.net, aka.node, aka.point);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -307,7 +307,9 @@ void MakeStat(void)
|
|||||||
fseek(fg, i * sizeof(hist), SEEK_SET);
|
fseek(fg, i * sizeof(hist), SEEK_SET);
|
||||||
fread(&hist, sizeof(hist), 1, fg);
|
fread(&hist, sizeof(hist), 1, fg);
|
||||||
fseek(fi, fileptr, SEEK_SET);
|
fseek(fi, fileptr, SEEK_SET);
|
||||||
MacroVars("cdefghij", "sssssdds", aka2str(hist.aka), hist.system_name, hist.location,
|
if (!strcmp(hist.aka.domain, "(null)"))
|
||||||
|
hist.aka.domain[0] = '\0';
|
||||||
|
MacroVars("cdefghij", "sssssdds", hist.aka.zone?aka2str(hist.aka):"N/A", hist.system_name, hist.location,
|
||||||
adate(hist.online), t_elapsed(hist.online, hist.offline), hist.sent_bytes,
|
adate(hist.online), t_elapsed(hist.online, hist.offline), hist.sent_bytes,
|
||||||
hist.rcvd_bytes, hist.inbound ? "In":"Out");
|
hist.rcvd_bytes, hist.inbound ? "In":"Out");
|
||||||
MacroRead(fi, fw);
|
MacroRead(fi, fw);
|
||||||
|
Reference in New Issue
Block a user