From 7829e9b16711ffe2bb4acddef196db73483f61c8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 20 Apr 2014 08:17:07 -0700 Subject: [PATCH] core: FP collision leaser should compare ints --- lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb index 027e57ba2..ea462be2f 100644 --- a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +++ b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb @@ -158,7 +158,7 @@ module Vagrant oldest = Time.now.to_i - 60 leasedir.children.each do |child| # Delete old, invalid leases while we're looking - if child.file? && child.mtime < oldest + if child.file? && child.mtime.to_i < oldest child.delete end