mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 09:33:39 +01:00
14 lines
245 B
C
14 lines
245 B
C
#include "processes.h"
|
|
|
|
#include <sys/sysinfo.h>
|
|
|
|
const char* ffDetectProcesses(uint32_t* result)
|
|
{
|
|
struct sysinfo info;
|
|
if(sysinfo(&info) != 0)
|
|
return "sysinfo() failed";
|
|
|
|
*result = (uint32_t) info.procs;
|
|
return NULL;
|
|
}
|