Browse Source

usrloc: proper condition when using rm_expired_delay

Daniel-Constantin Mierla 7 years ago
parent
commit
1caf97eee9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/usrloc/udomain.c

+ 1 - 1
src/modules/usrloc/udomain.c

@@ -902,7 +902,7 @@ int db_timer_udomain(udomain_t* _d)
 	keys[0] = &expires_col;
 	ops[0] = "<";
 	vals[0].nul = 0;
-	UL_DB_EXPIRES_SET(&vals[0], act_time + 1 + ul_rm_expired_delay);
+	UL_DB_EXPIRES_SET(&vals[0], act_time + 1 - ul_rm_expired_delay);
 
 	keys[1] = &expires_col;
 	ops[1] = OP_NEQ;