fixed type
authorJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 20 Jul 2011 11:24:09 +0000 (11:24 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 20 Jul 2011 11:24:09 +0000 (11:24 +0000)
www/psensor.js

index 79757ea..2092509 100644 (file)
@@ -31,12 +31,14 @@ function type_to_str(stype) {
         stype_str = "NVidia";
     } else if (stype & 0x0400) {
         stype_str = "HDD";
-    } else if (stype & 0x0800) {
-        stype_str = "Fan";
+    } else if (stype & 0x1000) {
+        stype_str = "AMD";
     }
 
    if (stype & 0x0001) {
-        stype_str += " Temperature";
+       stype_str += " Temperature";
+   } else if (stype & 0x0002) {
+       stype_str += " Fan";
    }
 
     return stype_str;