dcosson / vagrant-unison2

Vagrant plugin to sync local files to VM using Unison over SSH
MIT License
50 stars 8 forks source link

Change poll rate #20

Closed francislavoie closed 8 years ago

francislavoie commented 8 years ago

Could we get an option to modify the polling rate? I find every second to be a bit overkill for me and keeping it running all the time is a bit of a CPU hog on Windows (~5-10%). I'd prefer a 5s interval or something like that to relax the CPU usage a bit.

Thanks for this, really did the trick for me! :+1:

dcosson commented 8 years ago

This is already configurable. In your Vagrantfile, you can set config.unison.repeat = 5 to repeat every 5 seconds.

francislavoie commented 8 years ago

Oh, cool. Thanks. It's not listed in the README, so I guess that example should be added for the next person to ask :)

dcosson commented 8 years ago

Yup, I just added to the README

francislavoie commented 8 years ago

Nice.