diff options
author | Dmitriy Eshenko <dmitriy.eshenko@accel-ppp.org> | 2022-11-16 19:55:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 19:55:34 +0300 |
commit | a31bc84b1fc53998400609999218f3112872be02 (patch) | |
tree | 42d68f133d7c21eb13580b8415820890e026462f /accel-pppd | |
parent | 474de35992ca918df0fd574d0cf6a403c67ba68f (diff) | |
download | accel-ppp-a31bc84b1fc53998400609999218f3112872be02.tar.gz accel-ppp-a31bc84b1fc53998400609999218f3112872be02.zip |
CLI: Fix counters output type
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/cli/show_sessions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index 73adc54f..b814e824 100644 --- a/accel-pppd/cli/show_sessions.c +++ b/accel-pppd/cli/show_sessions.c @@ -599,7 +599,7 @@ static void print_rx_bytes_raw(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.rx_bytes); + sprintf(buf, "%llu", stats.rx_bytes); } static void print_tx_bytes_raw(struct ap_session *ses, char *buf) @@ -608,7 +608,7 @@ static void print_tx_bytes_raw(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.tx_bytes); + sprintf(buf, "%llu", stats.tx_bytes); } static void print_rx_pkts(struct ap_session *ses, char *buf) @@ -617,7 +617,7 @@ static void print_rx_pkts(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.rx_packets); + sprintf(buf, "%llu", stats.rx_packets); } static void print_tx_pkts(struct ap_session *ses, char *buf) @@ -626,7 +626,7 @@ static void print_tx_pkts(struct ap_session *ses, char *buf) get_stats(ses); stats_set = 1; } - sprintf(buf, PRIu64, stats.tx_packets); + sprintf(buf, "%llu", stats.tx_packets); } static void load_config(void *data) |