mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
PhysicalDisk (Linux): don't append diskseq
This commit is contained in:
@@ -56,15 +56,6 @@ const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options)
|
||||
if (device->name.length == 0)
|
||||
ffStrbufSetS(&device->name, devName);
|
||||
|
||||
char diskseq[8] = "";
|
||||
snprintf(pathSysBlock, PATH_MAX, "/sys/block/%s/diskseq", devName);
|
||||
ffReadFileData(pathSysBlock, sizeof(diskseq) - 1, diskseq);
|
||||
char* lineEnding = strchr(diskseq, '\n');
|
||||
if (lineEnding)
|
||||
*lineEnding = '\0';
|
||||
if (!ffStrEquals(diskseq, "1"))
|
||||
ffStrbufAppendF(&device->name, "-%s", diskseq);
|
||||
|
||||
if (options->namePrefix.length && !ffStrbufStartsWith(&device->name, &options->namePrefix))
|
||||
{
|
||||
ffStrbufDestroy(&device->name);
|
||||
|
||||
Reference in New Issue
Block a user