Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5352:19338f65fa9a HEAD
Log "kept it for n seconds", not -n seconds.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 17 Mar 2007 17:28:10 +0200 |
parents | 5220d4e6690d |
children | 0f352077f789 |
files | src/lib/file-dotlock.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/file-dotlock.c Sat Mar 17 14:07:39 2007 +0200 +++ b/src/lib/file-dotlock.c Sat Mar 17 17:28:10 2007 +0200 @@ -555,7 +555,7 @@ if (errno == ENOENT) { i_warning("Our dotlock file %s was deleted " "(kept it %d secs)", lock_path, - (int)(dotlock->lock_time - time(NULL))); + (int)(time(NULL) - dotlock->lock_time)); file_dotlock_free(dotlock); return 0; } @@ -580,14 +580,14 @@ "assuming it wasn't overridden (kept it %d secs)", lock_path, dec2str(dotlock->mtime), dec2str(st.st_mtime), - (int)(dotlock->lock_time - time(NULL))); + (int)(time(NULL) - dotlock->lock_time)); } if (unlink(lock_path) < 0) { if (errno == ENOENT) { i_warning("Our dotlock file %s was deleted " "(kept it %d secs)", lock_path, - (int)(dotlock->lock_time - time(NULL))); + (int)(time(NULL) - dotlock->lock_time)); file_dotlock_free(dotlock); return 0; } @@ -657,7 +657,7 @@ !CMP_DEV_T(st.st_dev, st2.st_dev)) { i_warning("Our dotlock file %s was overridden " "(kept it %d secs)", lock_path, - (int)(dotlock->lock_time - time(NULL))); + (int)(time(NULL) - dotlock->lock_time)); errno = EEXIST; file_dotlock_free(dotlock); return 0;