Files
nixpkgs/pkgs/by-name/li/likwid/cat-grep-sort-wc.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

21 lines
859 B
Diff

--- a/src/access-daemon/accessDaemon.c 2024-01-10 14:26:18.519538418 +0100
+++ b/src/access-daemon/accessDaemon.c 2024-01-10 14:30:44.090278291 +0100
@@ -201,7 +201,7 @@
static int getNumberOfCPUs()
{
FILE* fpipe = NULL;
- char cmd[1024] = "cat /proc/cpuinfo | grep \"processor\" | sort -u | wc -l";
+ char cmd[1024] = "@coreutils@cat /proc/cpuinfo | @gnugrep@grep \"processor\" | @coreutils@sort -u | @coreutils@wc -l";
char buff[1024];
if ( !(fpipe = popen(cmd,"r")) )
{
@@ -219,7 +219,7 @@
static int getNumberOfSockets()
{
FILE* fpipe = NULL;
- char cmd[1024] = "cat /proc/cpuinfo | grep \"physical id\" | sort -u | wc -l";
+ char cmd[1024] = "@coreutils@cat /proc/cpuinfo | @gnugrep@grep \"physical id\" | @coreutils@sort -u | @coreutils@wc -l";
char buff[1024];
if ( !(fpipe = popen(cmd,"r")) )
{