mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-05 20:54:21 +01:00
Global: removes FFlist::elementSize
Improves performance of module Sound and PhysicalMemory
This commit is contained in:
@@ -183,7 +183,7 @@ static void printDisk(FFDiskOptions* options, const FFDisk* disk, uint32_t index
|
||||
}
|
||||
|
||||
bool ffPrintDisk(FFDiskOptions* options) {
|
||||
FF_LIST_AUTO_DESTROY disks = ffListCreate(sizeof(FFDisk));
|
||||
FF_LIST_AUTO_DESTROY disks = ffListCreate();
|
||||
const char* error = ffDetectDisks(options, &disks);
|
||||
|
||||
if (error) {
|
||||
@@ -358,7 +358,7 @@ void ffGenerateDiskJsonConfig(FFDiskOptions* options, yyjson_mut_doc* doc, yyjso
|
||||
}
|
||||
|
||||
bool ffGenerateDiskJsonResult(FFDiskOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module) {
|
||||
FF_LIST_AUTO_DESTROY disks = ffListCreate(sizeof(FFDisk));
|
||||
FF_LIST_AUTO_DESTROY disks = ffListCreate();
|
||||
const char* error = ffDetectDisks(options, &disks);
|
||||
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user