systeminformation
Advanced tools
Comparing version 5.25.7 to 5.25.8
@@ -736,4 +736,4 @@ 'use strict'; | ||
// Raspberry: https://elinux.org/RPI_vcgencmd_usage | ||
if (util.isRaspberry() && util.isRaspbian()) { | ||
let cmd = 'fbset -s | grep \'mode "\'; vcgencmd get_mem gpu; tvservice -s; tvservice -n;'; | ||
if (util.isRaspberry()) { | ||
let cmd = 'fbset -s 2> /dev/null | grep \'mode "\' ; vcgencmd get_mem gpu 2> /dev/null; tvservice -s 2> /dev/null; tvservice -n 2> /dev/null;'; | ||
exec(cmd, function (error, stdout) { | ||
@@ -763,3 +763,3 @@ let lines = stdout.toString().split('\n'); | ||
} | ||
if (lines.length > 1 && stdout.toString().indexOf('gpu=') >= -1) { | ||
if (lines.length >= 1 && stdout.toString().indexOf('gpu=') >= -1) { | ||
result.controllers.push({ | ||
@@ -766,0 +766,0 @@ vendor: 'Broadcom', |
{ | ||
"name": "systeminformation", | ||
"version": "5.25.7", | ||
"version": "5.25.8", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
817051