@@ -26,10 +26,6 @@ static schedule *sched;
2626
2727struct stats_t stats;
2828
29- const char * version () {
30- return " 2.1.3" ;
31- }
32-
3329static void create_daemon () {
3430 pid_t pid;
3531
@@ -113,7 +109,8 @@ int main(int argc, char **argv) {
113109 conf_arg = true ;
114110 conf_file_path = argv[++i];
115111 } else if (strcmp (argv[i], " -V" ) == 0 || strcmp (argv[i], " --version" ) == 0 ) {
116- std::cout << " Ocelot version " << version () << " , compiled " << __DATE__ << ' ' << __TIME__ << std::endl;
112+ // preprocessor concatenation
113+ std::cout << " Ocelot version " OCELOT_VERSION " , compiled " __DATE__ " " __TIME__ << std::endl;
117114 return 0 ;
118115 } else {
119116 std::cout << " Usage: " << argv[0 ] << " [-v] [-c configfile] [--daemonize]" << std::endl;
@@ -147,8 +144,7 @@ int main(int argc, char **argv) {
147144 // If we don't set flush on info, the file log takes a long while to actually flush
148145 combined_logger->flush_on (spdlog::level::info);
149146 combined_logger->info (
150- std::string (" Ocelot version " ) + version ()
151- + std::string (" , compiled " ) + __DATE__ + std::string (" " ) + __TIME__
147+ " Ocelot version " OCELOT_VERSION " , compiled " __DATE__ " " __TIME__
152148 );
153149 spdlog::register_logger (combined_logger);
154150
@@ -171,17 +167,29 @@ int main(int argc, char **argv) {
171167 db->load_whitelist (whitelist);
172168
173169 stats.open_connections = 0 ;
170+ stats.peak_connections = 0 ;
174171 stats.opened_connections = 0 ;
175172 stats.connection_rate = 0 ;
176173 stats.requests = 0 ;
177174 stats.request_rate = 0 ;
178175 stats.leechers = 0 ;
179176 stats.seeders = 0 ;
177+ stats.user_queue_size = 0 ;
178+ stats.torrent_queue_size = 0 ;
179+ stats.peer_queue_size = 0 ;
180+ stats.snatch_queue_size = 0 ;
181+ stats.token_queue_size = 0 ;
182+ stats.max_client_request_len = 0 ;
180183 stats.announcements = 0 ;
181184 stats.succ_announcements = 0 ;
182185 stats.scrapes = 0 ;
183186 stats.bytes_read = 0 ;
184187 stats.bytes_written = 0 ;
188+ stats.auth_error_secret = 0 ;
189+ stats.auth_error_report = 0 ;
190+ stats.auth_error_announce_key = 0 ;
191+ stats.client_error = 0 ;
192+ stats.http_error = 0 ;
185193 stats.start_time = time (NULL );
186194
187195 // Create worker object, which handles announces and scrapes and all that jazz
0 commit comments