fix ZeroDivision bug in check_vm_port plugin