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
..
2020-03-20 14:47:13 -06:00
2023-10-09 22:23:59 -06:00
2019-08-30 21:05:01 -04:00
2023-10-09 22:23:59 -06:00
2023-10-12 23:58:11 -06:00
2023-10-17 22:35:29 +00:00
2023-10-18 15:32:35 -06:00
2023-10-18 15:32:35 -06:00
2023-10-19 18:49:54 +00:00
2023-10-21 10:23:14 -06:00
2023-10-19 16:48:45 +00:00
2023-10-19 00:40:50 +00:00
2023-09-23 14:50:51 +00:00
2023-01-20 11:50:52 -07:00
2023-09-20 18:43:17 +00:00
2023-10-19 18:52:54 +00:00
2023-09-16 00:22:12 -06:00
2023-09-16 00:22:12 -06:00
2023-10-19 18:53:29 +00:00
2023-09-28 09:32:34 -06:00
2023-10-02 11:44:05 -06:00
2023-06-15 11:28:23 -06:00
2023-10-12 23:58:11 -06:00
2023-10-20 15:49:30 -06:00
2023-09-28 09:32:34 -06:00
2023-08-25 13:17:46 -06:00
2023-10-26 13:27:31 -06:00
2023-06-19 14:56:16 -06:00
2023-09-20 18:43:17 +00:00
2023-06-15 11:28:23 -06:00
2023-09-20 18:50:41 +00:00
2023-09-15 23:25:29 -06:00
2023-10-19 18:55:19 +00:00
2023-04-02 22:12:13 -06:00
2023-10-19 18:02:00 +00:00
2023-09-28 23:12:58 -06:00
2023-09-28 09:32:34 -06:00
2023-09-28 09:32:34 -06:00
2022-12-03 14:46:40 -07:00
2023-08-30 13:18:55 -06:00
2023-09-20 18:43:17 +00:00
2023-07-15 18:49:39 -06:00
2023-07-13 21:32:25 -06:00
2023-04-02 22:12:13 -06:00
2023-10-20 16:38:02 -06:00
2023-06-15 11:28:23 -06:00
2023-09-28 10:48:36 -06:00
2023-09-28 09:32:34 -06:00
2023-09-20 18:43:17 +00:00
2023-09-28 09:32:34 -06:00
2023-06-15 11:28:23 -06:00
2022-09-18 00:54:37 -06:00
2023-04-21 12:32:16 -06:00
2023-08-28 09:37:02 -06:00
2023-09-28 09:32:34 -06:00
2023-09-28 09:32:34 -06:00
2023-10-19 18:55:49 +00:00
2023-09-20 18:43:17 +00:00
2023-09-20 18:43:17 +00:00
2023-04-11 09:31:44 -06:00
2023-06-15 11:28:23 -06:00
2023-07-06 14:03:21 -06:00
2022-09-18 00:54:37 -06:00
2023-10-26 13:53:38 -06:00
2023-09-20 17:25:24 +00:00
2023-10-19 18:54:07 +00:00
2023-05-09 11:39:02 -06:00
2023-09-16 00:22:12 -06:00
2023-06-15 11:28:23 -06:00
2023-10-19 18:54:30 +00:00
2023-10-25 11:23:38 -06:00
2023-06-01 17:20:49 -06:00