OSDN Git Service

Misc
authorwifiextender <router@archlinux.info>
Mon, 18 Jul 2016 20:48:52 +0000 (22:48 +0200)
committerwifiextender <router@archlinux.info>
Mon, 18 Jul 2016 20:48:52 +0000 (22:48 +0200)
README.md
img/cpu-temp.png [new file with mode: 0644]
img/mobo-temp.png [new file with mode: 0644]
src/functions.c

index c8237ff..d491d8e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -9,9 +9,10 @@ Please note that the program won't detect fans connected via molex connetor(s) o
 
 The program is smart enough to detect whether some of your fan(s) blades are spinning, or the particular fan have been removed. Hold down some of your fan blades and you'll see that the program won't include this fan and it's RPM, release the blades and you'll see the fan and it's RPM in the statusbar.
 
-If you compile your kernel from source code make sure to include your motherboard sensor module.
+If you compile your kernel from source code make sure to include your cpu and motherboard sensors as **modules** and not inlined.
 
-The second snapshot (above) was taken in **xmonad**.
+![](img/cpu-temp.png)
+![](img/mobo-temp.png)
 
 ## Installation for dwm
 
diff --git a/img/cpu-temp.png b/img/cpu-temp.png
new file mode 100644 (file)
index 0000000..3bb80a9
Binary files /dev/null and b/img/cpu-temp.png differ
diff --git a/img/mobo-temp.png b/img/mobo-temp.png
new file mode 100644 (file)
index 0000000..69ab337
Binary files /dev/null and b/img/mobo-temp.png differ
index 6604d77..46d3079 100644 (file)
@@ -239,9 +239,9 @@ void get_fans(char *str1)
     bool found_fans = true;
     char tempstr[VLA], buffer[VLA];
     char *all_fans = buffer;
-    uint_fast16_t x = 0, y = 0, z = 0, rpm[11];
+    uint_fast16_t x = 0, y = 0, z = 0, rpm[21];
 
-    for (x = 1; x < 10; x++, z++) {
+    for (x = 1; x < 20; x++, z++) {
       FILL_ARR(tempstr, HWMON_DIR"/fan"UFINT"_input", x);
 
       if (!(fp = fopen(tempstr, "r")) && x > 1)