Files
fastfetch/src/detection/processes/processes_linux.c
T

11 lines
237 B
C
Raw Normal View History

2022-10-06 22:07:48 +08:00
#include "processes.h"
2022-12-28 17:18:08 +08:00
#include <sys/sysinfo.h>
uint32_t ffDetectProcesses(FFstrbuf* error)
2022-10-06 22:07:48 +08:00
{
2022-12-28 17:18:08 +08:00
struct sysinfo info;
if(sysinfo(&info) != 0)
ffStrbufAppendS(error, "sysinfo() failed");
return (uint32_t) info.procs;
2022-10-06 22:07:48 +08:00
}