Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Feb 21, 2024
1 parent 91d1c74 commit fdd25af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions run_clang_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ function fix_warnings() {
clang-format --verbose -i --style=file $FILE_LIST
}

fix_warnings
#check_warning
#fix_warnings
check_warning
2 changes: 1 addition & 1 deletion wifibroadcast/src/HelperSources/EmulatedPacketDrop.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:"<<n_dropped_packets<<",forwarded:"<<n_forwarded_packets<<"Perc:"<<perc_dropped<<"\n";
}
Expand Down
4 changes: 2 additions & 2 deletions wifibroadcast/src/HelperSources/SocketHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ class UDPMultiForwarder {
udpForwarder->forwardPacketViaUDP(packet, packetSize);
}
}
[[nodiscard]] const std::list<std::unique_ptr<SocketHelper::UDPForwarder>> &
getForwarders() const {
[[nodiscard]] const std::list<std::unique_ptr<SocketHelper::UDPForwarder>>
&getForwarders() const {
return udpForwarders;
}

Expand Down

0 comments on commit fdd25af

Please sign in to comment.