Code

mbmon plugin: Correct the `type's being passed to the dispatch function.
authorFlorian Forster <sifnfors@faui02b.informatik.uni-erlangen.de>
Mon, 5 Feb 2007 10:11:37 +0000 (11:11 +0100)
committerFlorian Forster <sifnfors@faui02b.informatik.uni-erlangen.de>
Mon, 5 Feb 2007 10:11:37 +0000 (11:11 +0100)
src/mbmon.c

index 63330524878de64eaac772cb718f458ea25b356b..0d9cd163215b1fd63dffca298c9cbaa3235e8fd2 100644 (file)
@@ -299,17 +299,17 @@ static int mbmon_read (void)
                if (strncmp (s, "TEMP", 4) == 0)
                {
                        inst = s + 4;
-                       type = "mbmon_temperature";
+                       type = "temperature";
                }
                else if (strncmp (s, "FAN", 3) == 0)
                {
                        inst = s + 3;
-                       type = "mbmon_fanspeed";
+                       type = "fanspeed";
                }
                else if (strncmp (s, "V", 1) == 0)
                {
                        inst = s + 1;
-                       type = "mbmon_voltage";
+                       type = "voltage";
                }
                else
                {