mirror of
https://github.com/accel-ppp/accel-ppp.git
synced 2025-12-20 01:21:49 +08:00
Merge pull request #281 from nuclearcat/fix-acct-caching
Some checks failed
Build and Run / Build-in-VM (Ubuntu22, ubuntu-22.04, ubuntu22.04) (push) Has been cancelled
Build and Run / Build-in-VM (Ubuntu24, ubuntu-24.04, ubuntu24.04) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:11) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:12) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:13) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:forky) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (ubuntu:22.04) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (ubuntu:24.04) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (ubuntu:devel) (push) Has been cancelled
Build and Run / Build-in-Container-Mainline (push) Has been cancelled
Build and Run / Build-in-Container-Alpine (push) Has been cancelled
Build and Run / Build-in-Container-Gentoo (push) Has been cancelled
Build and Run / Build-in-Container-Fedora (push) Has been cancelled
Run tests (x86_32) / Test in Qemu (x86_32 Alpine) (v3.20) (push) Has been cancelled
Run tests with ASAN and UBSAN / Test-in-GH-ASAN-UBSAN (ubuntu-latest, ASAN_OPTIONS, abort_on_error=1:detect_leaks=1:print_stacktrace=1, address) (push) Has been cancelled
Run tests with ASAN and UBSAN / Test-in-GH-ASAN-UBSAN (ubuntu-latest, UBSAN_OPTIONS, print_stacktrace=1, undefined) (push) Has been cancelled
Run tests (big-endian) / Test in Qemu (s390x Alpine) (push) Has been cancelled
Run tests / Test in Qemu (Debian11) (push) Has been cancelled
Run tests / Test in Qemu (Debian12) (push) Has been cancelled
Run tests / Test in Qemu (Debian13) (push) Has been cancelled
Run tests / Test in Qemu (Ubuntu-22.04) (push) Has been cancelled
Run tests / Test in Qemu (Ubuntu-24.04) (push) Has been cancelled
Run tests / Test in Qemu (Alpine) (push) Has been cancelled
Run tests / Test-in-GH (ubuntu-22.04) (push) Has been cancelled
Run tests / Test-in-GH (ubuntu-24.04) (push) Has been cancelled
Run tests / Test-in-GH-Coverage (ubuntu-22.04) (push) Has been cancelled
Run tests / Test-in-GH-Coverage (ubuntu-24.04) (push) Has been cancelled
Some checks failed
Build and Run / Build-in-VM (Ubuntu22, ubuntu-22.04, ubuntu22.04) (push) Has been cancelled
Build and Run / Build-in-VM (Ubuntu24, ubuntu-24.04, ubuntu24.04) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:11) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:12) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:13) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (debian:forky) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (ubuntu:22.04) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (ubuntu:24.04) (push) Has been cancelled
Build and Run / Build-in-Container-Debian (ubuntu:devel) (push) Has been cancelled
Build and Run / Build-in-Container-Mainline (push) Has been cancelled
Build and Run / Build-in-Container-Alpine (push) Has been cancelled
Build and Run / Build-in-Container-Gentoo (push) Has been cancelled
Build and Run / Build-in-Container-Fedora (push) Has been cancelled
Run tests (x86_32) / Test in Qemu (x86_32 Alpine) (v3.20) (push) Has been cancelled
Run tests with ASAN and UBSAN / Test-in-GH-ASAN-UBSAN (ubuntu-latest, ASAN_OPTIONS, abort_on_error=1:detect_leaks=1:print_stacktrace=1, address) (push) Has been cancelled
Run tests with ASAN and UBSAN / Test-in-GH-ASAN-UBSAN (ubuntu-latest, UBSAN_OPTIONS, print_stacktrace=1, undefined) (push) Has been cancelled
Run tests (big-endian) / Test in Qemu (s390x Alpine) (push) Has been cancelled
Run tests / Test in Qemu (Debian11) (push) Has been cancelled
Run tests / Test in Qemu (Debian12) (push) Has been cancelled
Run tests / Test in Qemu (Debian13) (push) Has been cancelled
Run tests / Test in Qemu (Ubuntu-22.04) (push) Has been cancelled
Run tests / Test in Qemu (Ubuntu-24.04) (push) Has been cancelled
Run tests / Test in Qemu (Alpine) (push) Has been cancelled
Run tests / Test-in-GH (ubuntu-22.04) (push) Has been cancelled
Run tests / Test-in-GH (ubuntu-24.04) (push) Has been cancelled
Run tests / Test-in-GH-Coverage (ubuntu-22.04) (push) Has been cancelled
Run tests / Test-in-GH-Coverage (ubuntu-24.04) (push) Has been cancelled
fix(radius): refresh session stats in req_set_stat
This commit is contained in:
@@ -50,6 +50,9 @@ static int req_set_stat(struct rad_req_t *req, struct ap_session *ses)
|
||||
else
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
|
||||
if (!ses->terminating)
|
||||
ret = ap_session_read_stats(ses, NULL);
|
||||
|
||||
rad_packet_change_int(req->pack, NULL, "Acct-Input-Octets", (int) (ses->acct_rx_bytes & UINT32_MAX));
|
||||
rad_packet_change_int(req->pack, NULL, "Acct-Output-Octets", (int) (ses->acct_tx_bytes & UINT32_MAX));
|
||||
rad_packet_change_int(req->pack, NULL, "Acct-Input-Packets", (int) (ses->acct_rx_packets & UINT32_MAX));
|
||||
@@ -541,4 +544,3 @@ int rad_acct_stop(struct radius_pd_t *rpd)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user