Source
1401
1401
case ITEM_VALUE_TYPE_UINT64:
1402
1402
if ($mapped_value !== false) {
1403
1403
return [
1404
1404
'value' => $mapped_value.' ('.$value.')',
1405
1405
'units' => '',
1406
1406
'is_mapped' => true
1407
1407
];
1408
1408
}
1409
1409
1410
1410
if ($item['units'] === 's' && array_key_exists('decimals', $convert_options)
1411
-
&& $convert_options['decimals'] != 0) {
1411
+
&& $convert_options['decimals'] != 0) {
1412
1412
return [
1413
1413
'value' => convertUnitSWithDecimals($value, false, $convert_options['decimals'], true),
1414
1414
'units' => '',
1415
1415
'is_mapped' => false
1416
1416
];
1417
1417
}
1418
1418
1419
1419
$converted_value = convertUnitsRaw([
1420
1420
'value' => $value,
1421
1421
'units' => $item['units']