From fdd25afc25eccb1bad729f6f3f4ed04b8fe88ea5 Mon Sep 17 00:00:00 2001 From: consti10 Date: Wed, 21 Feb 2024 12:59:39 +0100 Subject: [PATCH] clang-format --- run_clang_format.sh | 4 ++-- wifibroadcast/src/HelperSources/EmulatedPacketDrop.hpp | 2 +- wifibroadcast/src/HelperSources/SocketHelper.hpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/run_clang_format.sh b/run_clang_format.sh index b9c18b23..aebce46c 100755 --- a/run_clang_format.sh +++ b/run_clang_format.sh @@ -39,5 +39,5 @@ function fix_warnings() { clang-format --verbose -i --style=file $FILE_LIST } -fix_warnings -#check_warning \ No newline at end of file +#fix_warnings +check_warning \ No newline at end of file diff --git a/wifibroadcast/src/HelperSources/EmulatedPacketDrop.hpp b/wifibroadcast/src/HelperSources/EmulatedPacketDrop.hpp index 8714ad49..1d3d7a42 100644 --- a/wifibroadcast/src/HelperSources/EmulatedPacketDrop.hpp +++ b/wifibroadcast/src/HelperSources/EmulatedPacketDrop.hpp @@ -33,7 +33,7 @@ class PacketDropEmulator { } void log() { const double perc_dropped = - (double)n_dropped_packets / (n_totoal_packets) * 100.0; + (double)n_dropped_packets / (n_totoal_packets)*100.0; // std::cout<<"N // dropped:"<forwardPacketViaUDP(packet, packetSize); } } - [[nodiscard]] const std::list> & - getForwarders() const { + [[nodiscard]] const std::list> + &getForwarders() const { return udpForwarders; }