Author Topic: Changing sleep timer in tmux scripts  (Read 229 times)

Offline globochem

  • Newbie
  • *
  • Posts: 1
  • Helpful: +0/-0
Changing sleep timer in tmux scripts
« on: 2018-04-07, 10:38:41 AM »
I've just installed nzedb on my NAS and i'm wondering what the "sleep timer" in the tmux settings is useful for?

As i understand it determines how long the php scripts in the tmux windows "sleep" after each iteration, but why should i set that to anything other than 0 seconds?

During the sleep time, nothing is happening, right? So what's the reasoning behind it?

Offline kaibosh

  • Overlord
  • ******
  • Posts: 161
  • Helpful: +18/-0
Re: Changing sleep timer in tmux scripts
« Reply #1 on: 2018-04-10, 01:09:05 PM »
Its purpose is to give the server hardware, the USP, meta-data providers, your local DB (or all of them) a rest in-between loops. e.g. There's no point polling the USP immediately again, especially if the previous update_binaries loop ran through in a few seconds. Same goes for the movie/tv/audio lookups etc.