aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libLumina/LuminaOS-Debian.cpp4
-rw-r--r--libLumina/LuminaOS-Linux.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/libLumina/LuminaOS-Debian.cpp b/libLumina/LuminaOS-Debian.cpp
index 1f84d44b..e351ddd0 100644
--- a/libLumina/LuminaOS-Debian.cpp
+++ b/libLumina/LuminaOS-Debian.cpp
@@ -40,7 +40,7 @@ QStringList LOS::ExternalDevicePaths(){
QString type = devs[i].section(" on ",0,0);
type.remove("/dev/");
//Determine the type of hardware device based on the dev node
- if(type.startsWith("sd")){ type = "HDRIVE"; }
+ if(type.startsWith("sd") || type.startsWith("nvme"){ type = "HDRIVE"; }
else if(type.startsWith("sr")){ type="DVD"; }
else if(type.contains("mapper")){ type="LVM"; }
else{ type = "UNKNOWN"; }
@@ -288,7 +288,7 @@ QStringList LOS::DiskUsage(){ //Returns: List of current read/write stats for ea
info[i].replace("\t"," ");
if(info[i].startsWith("Device:")){ labs = info[i].split(" ", QString::SkipEmptyParts); }//the labels for each column
else{
- QStringList data = info[i].split(" ",QString::SkipEmptyParts); //data[0] is always the device
+ QStringList data = info[i].split(" ",QString::SkipEmptyParts); //data[0] is always the device
if(data.length()>2 && labs.length()>2){
out << fmt.arg(data[0], data[3]+" "+labs[3], data[4]+" "+labs[4]);
}
diff --git a/libLumina/LuminaOS-Linux.cpp b/libLumina/LuminaOS-Linux.cpp
index eb9ed48f..7bb803bd 100644
--- a/libLumina/LuminaOS-Linux.cpp
+++ b/libLumina/LuminaOS-Linux.cpp
@@ -37,7 +37,7 @@ QStringList LOS::ExternalDevicePaths(){
QString type = devs[i].section(" ",0,0);
type.remove("/dev/");
//Determine the type of hardware device based on the dev node
- if(type.startsWith("sd")){ type = "HDRIVE"; }
+ if(type.startsWith("sd") || type.startsWith("nvme"){ type = "HDRIVE"; }
else if(type.startsWith("sr")){ type="DVD"; }
else if(type.contains("mapper")){ type="LVM"; }
else{ type = "UNKNOWN"; }
bgstack15