fufroma
c030b0c00e
RFC1628 - Force cast on some values before doing arithmetic ( #14613 )
...
* Force cast on some values before doing arithmetic
Some devices (like Delta InsightPower G3 Mini SNMP Card) return STRING instead of numerical value.
A few lines after, when doing a division on it, everything go bad ( / $divisor).
I added force casting, no more crash and the values are OK.
* Using helper cast_number() instead of intval()
* Fix style
* Add test data
* Stop using deprecated function cast_number
2023-07-31 22:18:26 -05:00
..
2021-09-10 20:09:53 +02:00
2023-06-13 13:35:00 +02:00
2023-05-12 07:06:34 -05:00
2022-01-30 16:28:18 -06:00
2021-12-03 15:48:48 -06:00
2023-03-13 22:32:22 +01:00
2023-05-16 17:25:29 -05:00
2022-04-23 08:42:24 -05:00
2023-07-31 22:18:26 -05:00
2023-07-24 19:07:23 -05:00
2023-07-24 21:47:46 -05:00
2022-11-07 13:35:48 -06:00
2023-07-15 20:45:22 +01:00
2023-04-06 21:01:21 -05:00
2021-09-10 20:09:53 +02:00
2022-08-24 14:45:43 -05:00
2021-10-19 15:43:43 -05:00
2021-11-17 22:10:54 +01:00
2023-07-24 19:07:23 -05:00
2023-01-27 00:43:45 +00:00
2022-10-19 01:33:06 +02:00
2023-07-26 01:08:10 +02:00
2023-07-26 01:08:10 +02:00
2022-08-21 16:23:43 -05:00
2022-08-28 20:47:51 -05:00
2021-09-10 20:09:53 +02:00
2023-06-13 13:35:00 +02:00
2021-03-29 00:25:30 +02:00
2020-11-23 15:35:35 -06:00
2021-09-10 20:09:53 +02:00
2022-08-21 16:23:43 -05:00
2021-11-17 19:23:55 -06:00
2023-05-16 17:25:29 -05:00
2021-03-27 10:09:14 -05:00
2023-03-13 22:32:22 +01:00
2023-01-02 14:47:17 +01:00
2023-03-13 22:32:22 +01:00
2021-06-11 13:48:33 -05:00
2022-08-21 16:23:43 -05:00
2022-01-30 16:28:18 -06:00
2022-10-25 19:27:28 +02:00
2023-06-13 13:35:00 +02:00
2023-03-13 22:32:22 +01:00
2021-09-10 20:09:53 +02:00
2022-09-07 19:29:17 -05:00