File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def list_new_files
148
148
@logger . debug ( 'Ignoring' , :key => log . key )
149
149
elsif log . content_length <= 0
150
150
@logger . debug ( 'Object Zero Length' , :key => log . key )
151
- elsif log . last_modified <= sincedb_time
151
+ elsif log . last_modified . to_i <= sincedb_time . to_i
152
152
@logger . debug ( 'Object Not Modified' , :key => log . key )
153
153
elsif log . last_modified > ( current_time - CUTOFF_SECOND ) . utc # file modified within last two seconds will be processed in next cycle
154
154
@logger . debug ( 'Object Modified After Cutoff Time' , :key => log . key )
@@ -380,7 +380,7 @@ def process_log(queue, log)
380
380
filename = File . join ( temporary_directory , File . basename ( log . key ) )
381
381
if download_remote_file ( object , filename )
382
382
if process_local_log ( queue , filename , object )
383
- if object . last_modified == log . last_modified
383
+ if object . last_modified . to_i == log . last_modified . to_i
384
384
backup_to_bucket ( object )
385
385
backup_to_dir ( filename )
386
386
delete_file_from_bucket ( object )
You can’t perform that action at this time.
0 commit comments