File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -231,18 +231,19 @@ void udp_network_gateway_impl::receive()
231231 (1 - (float )get_byte_buffer_segment_pool_current_size_approx () / get_byte_buffer_segment_pool_capacity ());
232232 if (pool_occupancy >= config.pool_occupancy_threshold ) {
233233 if (warn_low_buffer_pool) {
234- logger.warning (" Buffer pool at {}% occupancy. Dropping {} packets" , pool_occupancy * 100 , rx_msgs - i);
234+ logger.warning (" Buffer pool at {:.1f }% occupancy. Dropping {} packets" , pool_occupancy * 100 , rx_msgs - i);
235235 warn_low_buffer_pool = false ;
236236 return ;
237237 }
238- logger.info (" Buffer pool at {}% occupancy. Dropping {} packets" , pool_occupancy * 100 , rx_msgs - i);
238+ logger.info (" Buffer pool at {:.1f }% occupancy. Dropping {} packets" , pool_occupancy * 100 , rx_msgs - i);
239239 return ;
240240 }
241241 span<uint8_t > payload (rx_mem[i].data (), rx_msghdr[i].msg_len );
242242
243243 byte_buffer pdu = {};
244244 if (pdu.append (payload)) {
245- logger.debug (" Received {} bytes on UDP socket. Pool occupancy {}%" , rx_msghdr[i].msg_len , pool_occupancy * 100 );
245+ logger.debug (
246+ " Received {} bytes on UDP socket. Pool occupancy {:.2f}%" , rx_msghdr[i].msg_len , pool_occupancy * 100 );
246247 data_notifier.on_new_pdu (std::move (pdu), *(sockaddr_storage*)rx_msghdr[i].msg_hdr .msg_name );
247248 } else {
248249 logger.error (" Could not allocate byte buffer. Received {} bytes on UDP socket" , rx_msghdr[i].msg_len );
You can’t perform that action at this time.
0 commit comments