aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-02-02 12:49:04 -0500
committerKen Moore <ken@ixsystems.com>2018-02-02 12:49:04 -0500
commit3abefc6eab4294f065945dd6e2fdfcd21d8c058c (patch)
treedcf7f6aa93d823fe81001bc19757b1d9b3788012 /src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp
parentTry to adjust/fix the network device detection routine for status reporting. (diff)
downloadlumina-3abefc6eab4294f065945dd6e2fdfcd21d8c058c.tar.gz
lumina-3abefc6eab4294f065945dd6e2fdfcd21d8c058c.tar.bz2
lumina-3abefc6eab4294f065945dd6e2fdfcd21d8c058c.zip
Another couple tweaks to the networking notification systems.
Diffstat (limited to 'src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp')
-rw-r--r--src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp b/src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp
index a1bdbdca..247b1bdb 100644
--- a/src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp
+++ b/src-qt5/src-cpp/framework-OSInterface-FreeBSD.cpp
@@ -106,7 +106,7 @@ float OSInterface::OS_networkStrengthFromDeviceName(QString name){
// Step 2: Scan access point to get signal/noise
info = getCmdOutput("ifconfig", QStringList() << name << "list" << "scan").filter(bssid);
if(info.isEmpty()){ return -1; }
- QString signoise =info.first().section(" ", 4,4).simplified();
+ QString signoise =info.first().section(" ", 4,4, QString::SectionSkipEmpty).simplified();
int sig = signoise.section(":",0,0).toInt();
int noise = signoise.section(":",1,1).toInt();
// Step 3: Turn signal/noise ratio into a percentage
bgstack15