Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion php_memcached_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static int php_memc_sess_lock(memcached_st *memc, const char *key TSRMLS_DC)
if (lock_expire <= 0) {
lock_expire = lock_maxwait;
}
expiration = time(NULL) + lock_expire + 1;
expiration = lock_expire + 1;
attempts = (unsigned long)((1000000.0 / lock_wait) * lock_maxwait);

/* Set the number of write retry attempts to the number of replicas times the number of attempts to remove a server */
Expand Down