mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-24 02:46:36 +01:00
Fix typos
This commit is contained in:
parent
e1f641ae4f
commit
fe90537a5e
@ -170,7 +170,7 @@ std::string attack_details_folder = "/var/log/fastnetmon_attacks";
|
||||
|
||||
/* Our data structs */
|
||||
|
||||
// Enum with availible sort by field
|
||||
// Enum with available sort by field
|
||||
enum sort_type { PACKETS, BYTES, FLOWS };
|
||||
|
||||
enum direction {
|
||||
@ -1271,7 +1271,7 @@ void calculation_thread() {
|
||||
boost::this_thread::sleep(boost::posix_time::milliseconds(500));
|
||||
|
||||
while (1) {
|
||||
// Availible only from boost 1.54: boost::this_thread::sleep_for( boost::chrono::seconds(check_period) );
|
||||
// Available only from boost 1.54: boost::this_thread::sleep_for( boost::chrono::seconds(check_period) );
|
||||
boost::this_thread::sleep(boost::posix_time::seconds(check_period));
|
||||
traffic_draw_programm();
|
||||
}
|
||||
@ -1280,7 +1280,7 @@ void calculation_thread() {
|
||||
void recalculate_speed_thread_handler() {
|
||||
while (1) {
|
||||
// recalculate data every one second
|
||||
// Availible only from boost 1.54: boost::this_thread::sleep_for( boost::chrono::seconds(1) );
|
||||
// Available only from boost 1.54: boost::this_thread::sleep_for( boost::chrono::seconds(1) );
|
||||
boost::this_thread::sleep(boost::posix_time::seconds(1));
|
||||
recalculate_speed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user