diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-03-24 09:20:46 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2012-03-24 09:20:46 +0200 |
commit | 1a0baf7f15d744103674f594343eb74c778dcf4d (patch) | |
tree | 6b5080e347a5a0b2feb63d902d458b33f936be9c | |
parent | 8b0b635491dd318baab5d93575eed9cda2b3c9fd (diff) |
simplified log
-rwxr-xr-x | server/server/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/server/config.cpp b/server/server/config.cpp index 6d945d3..4f32c0a 100755 --- a/server/server/config.cpp +++ b/server/server/config.cpp @@ -30,7 +30,7 @@ void speed_test_thread_func(config *cfg, int check_interval, std::list<config::p for(std::list<config::static_proxy_entry>::iterator i = static_proxy_list->begin(), end = static_proxy_list->end(); i != end; ++i) { speedtest t(test_url); - int sp = (int)t.test(&(*i)); + size_t sp = t.test(&(*i)); if(cfg->log_speed()) { char port[10]; @@ -38,7 +38,7 @@ void speed_test_thread_func(config *cfg, int check_interval, std::list<config::p while(!logger) boost::this_thread::sleep(boost::posix_time::milliseconds(200)); logger->lock(); - *logger << time_str() << ": "<<i->host<<":"<<port<<"\tspeed: "<<sp<<"b/s\n"; + *logger << time_str() << ": "<<i->host<<":"<<port<<"\t"<<sp<<"\n"; logger->unlock(); } boost::this_thread::sleep(boost::posix_time::seconds(1)); |