--- system_information.widget.php 2018-05-08 18:02:02.000000000 +0200 +++ system_information.widget.php.NEW 2018-06-11 10:22:35.868844000 +0200 @@ -37,6 +37,7 @@ 'version' => gettext('Version'), 'cpu_type' => gettext('CPU Type'), 'hwcrypto' => gettext('Hardware Crypto'), + 'kernel_pti' => gettext('Kernel PTI'), 'uptime' => gettext('Uptime'), 'current_datetime' => gettext('Current Date/Time'), 'dns_servers' => gettext('DNS Server(s)'), @@ -269,15 +270,17 @@ 0) { + if (!in_array('kernel_pti', $skipsysinfoitems)): + $pti = get_single_sysctl('vm.pmap.pti'); + if (strlen($pti) > 0) { ?> - - + + @@ -619,7 +622,7 @@ } function updateTemp(x) { - $("#tempmeter").html(function() { + $('[id="tempmeter"]').html(function() { return this.dataset.units === "F" ? parseInt(x * 1.8 + 32, 10) : x; }); setProgress('tempPB', parseInt(x));