gyptazy / ProxLB

ProxLB - (Re)Balance VM Workloads Across Nodes in Proxmox Clusters. A Load Balancer for Proxmox - and more!
https://proxlb.de
GNU General Public License v3.0
201 stars 9 forks source link

`Bug`: Schedule in daemon mode using seconds, not hours #45

Closed mater-345 closed 2 months ago

mater-345 commented 2 months ago

Hi!

According to the documentation the schedule settings, set the next run in hours:

Hours to rebalance in hours. (default: 24)

But it seems the code using this:

    time.sleep(int(schedule) * 60)

With a setting to 1, this will run the checking in 1 minutes rather than 1 hours, as time.sleep using seconds.

gyptazy commented 2 months ago

Hey @mater-345,

ouch, thanks for pointing out! Will be fixed asap!

cheers, gyptazy