aports/community/zabbix/ZBX-11549.patch
2017-09-27 05:41:58 +00:00

12 lines
245 B
Diff

--- a/frontends/php/include/func.inc.php
+++ b/frontends/php/include/func.inc.php
@@ -401,6 +401,7 @@
function str2mem($val) {
$val = trim($val);
$last = strtolower(substr($val, -1));
+ $val = (int) $val;
switch ($last) {
case 'g':