Skip to content

Commit 32f8dd6

Browse files
authored
downloader: compare compatible type (#233)
GitHub: fix GH-232
1 parent cab280b commit 32f8dd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/datasets/downloader.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def download(output_path, &block)
111111
rescue ArgumentError
112112
# The process that acquired the lock will be exited before
113113
# it stores its process ID.
114-
valid_lock_path = (lock_path.mtime > 10)
114+
elapsed_time = Time.now - lock_path.mtime
115+
valid_lock_path = (elapsed_time > 10)
115116
else
116117
begin
117118
Process.getpgid(pid)

0 commit comments

Comments
 (0)