diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 70ca1a8..651766b 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -289,7 +289,7 @@ EOF
path = lock_path(name)
verbose(3, "Locking #{path}")
while File.file?(path)
- sleep 1000.ms
+ sleep 1
end
File.write(path, "")
at_exit { FileUtils.rm(path) }