mirror of
https://github.com/pavel-odintsov/fastnetmon.git
synced 2024-09-21 10:27:13 +00:00
Reformat code with clang-format
This commit is contained in:
parent
96c08b37bd
commit
784479731f
@ -17,3 +17,6 @@ fmt/format.h
|
||||
build
|
||||
traffic_data.pb.h
|
||||
traffic_data.pb.cc
|
||||
packaging/FreeBSD/files/patch-src_fast__endianless.hpp
|
||||
packaging/FreeBSD/files/patch-src_fast__library.cpp
|
||||
packaging/FreeBSD/files/patch-src_fastnetmon.cpp
|
||||
|
@ -11,8 +11,8 @@
|
||||
|
||||
// For be64toh and htobe64
|
||||
#if defined(__FreeBSD__) || defined(__DragonFly__)
|
||||
#include <sys/endian.h>
|
||||
#include <cstdint>
|
||||
#include <sys/endian.h>
|
||||
#endif
|
||||
|
||||
// Linux standard functions for endian conversions are ugly because there are no checks about arguments length
|
||||
|
@ -1648,7 +1648,8 @@ void traffic_draw_ipv6_program() {
|
||||
sorter_type = attack_detection_threshold_type_t::packets_per_second;
|
||||
}
|
||||
|
||||
output_buffer << "FastNetMon " << fastnetmon_platform_configuration.fastnetmon_version << " Try Advanced edition: https://fastnetmon.com/product-overview/"
|
||||
output_buffer << "FastNetMon " << fastnetmon_platform_configuration.fastnetmon_version
|
||||
<< " Try Advanced edition: https://fastnetmon.com/product-overview/"
|
||||
<< "\n"
|
||||
<< "IPs ordered by: " << sort_parameter << "\n";
|
||||
|
||||
@ -1733,7 +1734,8 @@ void traffic_draw_ipv4_program() {
|
||||
sorter_type = attack_detection_threshold_type_t::packets_per_second;
|
||||
}
|
||||
|
||||
output_buffer << "FastNetMon " << fastnetmon_platform_configuration.fastnetmon_version << " Try Advanced edition: https://fastnetmon.com/product-overview/"
|
||||
output_buffer << "FastNetMon " << fastnetmon_platform_configuration.fastnetmon_version
|
||||
<< " Try Advanced edition: https://fastnetmon.com/product-overview/"
|
||||
<< "\n"
|
||||
<< "IPs ordered by: " << sort_parameter << "\n";
|
||||
|
||||
|
@ -17,4 +17,3 @@ extern log4cpp::Category& logger;
|
||||
|
||||
// Access to inaccurate but fast time
|
||||
extern time_t current_inaccurate_time;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user