summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2010-10-23 08:50:45 +0400
committerKozlov Dmitry <xeb@mail.ru>2010-10-23 08:50:54 +0400
commitce95b416f4b6c5012073bb14c0b48c6b3a81fc33 (patch)
treef46843cdd5498c36bff7d10aa2a905714e2e53c5 /accel-pptpd/radius
parent86618cc5cc67e174cfda59f2ed6a8635e4333fb9 (diff)
downloadaccel-ppp-ce95b416f4b6c5012073bb14c0b48c6b3a81fc33.tar.gz
accel-ppp-ce95b416f4b6c5012073bb14c0b48c6b3a81fc33.zip
pppd_compat: implemented ip-pre-up
implemented PEERNAME, CONNECT_TIME, BYTES_RCVD, BYTES_SENT environment variables
Diffstat (limited to 'accel-pptpd/radius')
-rw-r--r--accel-pptpd/radius/acct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/radius/acct.c b/accel-pptpd/radius/acct.c
index 9ebd196b..6703055f 100644
--- a/accel-pptpd/radius/acct.c
+++ b/accel-pptpd/radius/acct.c
@@ -58,7 +58,7 @@ static void req_set_stat(struct rad_req_t *req, struct ppp_t *ppp)
rad_packet_change_int(req->pack, "Acct-Output-Packets", ifreq.stats.p.ppp_opackets);
rad_packet_change_int(req->pack, "Acct-Input-Gigawords", req->rpd->acct_input_gigawords);
rad_packet_change_int(req->pack, "Acct-Output-Gigawords", req->rpd->acct_output_gigawords);
- rad_packet_change_int(req->pack, "Acct-Session-Time", time(NULL) - ppp->start_time);
+ rad_packet_change_int(req->pack, "Acct-Session-Time", ppp->stop_time - ppp->start_time);
}
static int rad_acct_read(struct triton_md_handler_t *h)