From 4b2684d52b27da7f7d599c3c80b0f1468205f80d Mon Sep 17 00:00:00 2001
From: Chris <applewar2@gmx.de>
Date: Mon, 10 Feb 2025 15:29:48 +0100
Subject: [PATCH] i forgot sth

---
 Processes/cpu_freq.c | 2 +-
 Processes/cpu_temp.c | 2 +-
 main.c               | 7 ++++---
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Processes/cpu_freq.c b/Processes/cpu_freq.c
index 6efd32c..31b707c 100644
--- a/Processes/cpu_freq.c
+++ b/Processes/cpu_freq.c
@@ -5,7 +5,7 @@
 #include <fcntl.h>
 #include <string.h>
 
-static const char *PIPE_TWO = "/tmp/pipeTwo";
+static const char *PIPE_TWO = "/tmp/cpu_freq";
 
 static void read_cpu_freq_and_write(int fd)
 {
diff --git a/Processes/cpu_temp.c b/Processes/cpu_temp.c
index 9ff26c6..16aabd0 100644
--- a/Processes/cpu_temp.c
+++ b/Processes/cpu_temp.c
@@ -5,7 +5,7 @@
 #include <fcntl.h>
 #include <string.h>
 
-static const char *PIPE_ONE = "/tmp/pipeOne";
+static const char *PIPE_ONE = "/tmp/cpu_temp";
 
 static void read_cpu_temp_and_write(int fd)
 {
diff --git a/main.c b/main.c
index 297123d..5d0d359 100644
--- a/main.c
+++ b/main.c
@@ -7,12 +7,13 @@
 #include <errno.h>
 
 #define MAX_PROCESSES 10 
-#define PIPE_DIR "/tmp/"
+#define PIPE_DIR "/tmp/" //name von pipe ist jetzt gleich name von process
+// bsp.: /usr/local/bin/cpu_temp hat die pipe /tmp/cpu_freq
 #define PROCESS_MONITORING_DIR "/Processes/process_monitoring.sh" //bitte überprüfen ob das die richtige DIR ist
 
 typedef struct {
-    char name[256];
-    char pipe_path[256];
+    char name[256]; //processname
+    char pipe_path[256]; 
     int fd;
 } ProcessPipe;
 
-- 
GitLab