fusionpbx/app/switch/resources
emak-Corey e5025d394f
Fix vm_disk_quota (#6814)
The current condition #vm_disk_quota <= #message_sum is checking the lengths of vm_disk_quota and message_sum, not their actual values. So, it won't compare the numeric values for your intended logic.

If they're strings that can be safely converted to numbers, use tonumber():

if (vm_disk_quota and message_sum and tonumber(vm_disk_quota) <= tonumber(message_sum)) then
  -- your code
end

This will compare them as numbers, ensuring that vm_disk_quota is less than or equal to message_sum.
2023-10-26 13:53:38 -06:00
..
classes Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
conf manage-presence to a default value of true 2023-10-10 20:13:32 -06:00
dashboard Misc: Remove parameters from event_socket_create() call. 2023-09-20 17:25:24 +00:00
scripts Fix vm_disk_quota (#6814) 2023-10-26 13:53:38 -06:00