diff options
Diffstat (limited to 'memcached.c')
-rw-r--r-- | memcached.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/memcached.c b/memcached.c index 12322de..8205da9 100644 --- a/memcached.c +++ b/memcached.c @@ -161,7 +161,7 @@ static void stats_init(void) { stats.curr_items = stats.total_items = stats.curr_conns = stats.total_conns = stats.conn_structs = 0; stats.get_cmds = stats.set_cmds = stats.get_hits = stats.get_misses = stats.evictions = 0; stats.curr_bytes = stats.listen_disabled_num = 0; - stats.accepting_conns = 1; /* assuming we start in this state. */ + stats.accepting_conns = true; /* assuming we start in this state. */ /* make the time we started always be 2 seconds before we really did, so time(0) - time.started is never zero. if so, things @@ -3248,11 +3248,11 @@ void accept_new_conns(const bool do_accept) { if (do_accept) { STATS_LOCK(); - stats.accepting_conns = 1; + stats.accepting_conns = true; STATS_UNLOCK(); } else { STATS_LOCK(); - stats.accepting_conns = 0; + stats.accepting_conns = false; stats.listen_disabled_num++; STATS_UNLOCK(); } |