mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
DiskIO (Linux): fix multi-namespace nvme drive detection
This commit is contained in:
@@ -38,7 +38,7 @@ static void parseDiskIOCounters(int dfd, const char* devName, FFlist* result, FF
|
||||
{
|
||||
char pathSysBlock[16];
|
||||
snprintf(pathSysBlock, sizeof(pathSysBlock), "nvme%dn2", devid);
|
||||
faccessat(devfd, pathSysBlock, F_OK, 0);
|
||||
multiNs = faccessat(devfd, pathSysBlock, F_OK, 0) == 0;
|
||||
}
|
||||
if (multiNs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user