From 5fb0e95454da54c575dc790e28bbe7bbd7a0e804 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 19 Sep 2016 14:20:12 -0400 Subject: Change the CPU temperature finder a bit: Avoid using "sysctl -a" in favor of using "sysctl hw." for doing the initial search for CPU temperature sysctls. This makes it touch a lot less of the system sysctl's, and might prevent a random kernel panic we are seeing on some systems when some particular sysctl is probed. --- src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp') diff --git a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp index 10216f92..5cdf18bc 100644 --- a/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp +++ b/src-qt5/core/libLumina/LuminaOS-FreeBSD.cpp @@ -292,7 +292,7 @@ QString LOS::FileSystemCapacity(QString dir) { //Return: percentage capacity as QStringList LOS::CPUTemperatures(){ //Returns: List containing the temperature of any CPU's ("50C" for example) static QStringList vars = QStringList(); QStringList temps; - if(vars.isEmpty()){ temps = LUtils::getCmdOutput("sysctl -ai").filter(".temperature:"); } + if(vars.isEmpty()){ temps = LUtils::getCmdOutput("sysctl -i hw.").filter(".temperature:"); } else{ temps = LUtils::getCmdOutput("sysctl "+vars.join(" ")); vars.clear(); } temps.sort(); -- cgit