| 81 |
#include "gamequeue.h" |
#include "gamequeue.h" |
| 82 |
#include "game.h" |
#include "game.h" |
| 83 |
#include "connection.h" |
#include "connection.h" |
| 84 |
|
#include "d2charstatus.h" |
| 85 |
#include "serverqueue.h" |
#include "serverqueue.h" |
| 86 |
#include "common/fdwatch.h" |
#include "common/fdwatch.h" |
| 87 |
#include "server.h" |
#include "server.h" |
| 210 |
static time_t prev_d2ladder_refresh_time=0; |
static time_t prev_d2ladder_refresh_time=0; |
| 211 |
static time_t prev_s2s_keepalive_time=0; |
static time_t prev_s2s_keepalive_time=0; |
| 212 |
static time_t prev_timeout_checktime; |
static time_t prev_timeout_checktime; |
| 213 |
|
static time_t prev_dump_charstatus_list_interval=0; |
| 214 |
time_t now; |
time_t now; |
| 215 |
|
|
| 216 |
now=time(NULL); |
now=time(NULL); |
| 243 |
connlist_check_timeout(); |
connlist_check_timeout(); |
| 244 |
prev_timeout_checktime=now; |
prev_timeout_checktime=now; |
| 245 |
} |
} |
| 246 |
|
/* by Leaflet */ |
| 247 |
|
if (now-prev_dump_charstatus_list_interval>(signed)prefs_dump_charstatus_list_interval()) { |
| 248 |
|
charstatus_list_dump(cmdline_get_charstatus_file()); |
| 249 |
|
prev_dump_charstatus_list_interval=now; |
| 250 |
|
} |
| 251 |
return 0; |
return 0; |
| 252 |
} |
} |
| 253 |
|
|