lib/vagrant-vaimo-unison/command.rb in vagrant-vaimo-unison-1.1.1 vs lib/vagrant-vaimo-unison/command.rb in vagrant-vaimo-unison-1.1.2
- old
+ new
@@ -98,10 +98,10 @@
sleep 15
total_mem = `#{ssh_command_text} 'free -m | egrep "^Mem:" | awk "{print \\$2}"' 2>/dev/null`
unison_proc_returnval = `#{ssh_command_text} 'ps aux | grep "[u]nison -server" | awk "{print \\$2, \\$4}"' 2>/dev/null`
if unison_proc_returnval == ''
- puts 'Unison not running in VM'
+ puts 'Unison is idling, status OK'
next
end
pid, mem_pct_unison = unison_proc_returnval.strip.split(' ')
mem_unison = (total_mem.to_f * mem_pct_unison.to_f / 100)