From: Jean-Philippe Orsini Date: Wed, 20 Jul 2011 11:24:09 +0000 (+0000) Subject: fixed type X-Git-Tag: v0.8.0.5~697 X-Git-Url: http://git.wpitchoune.net/gitweb/?a=commitdiff_plain;h=fd891ed38f7adf8b3925b37e8de5bb827f61da58;hp=4baa2d781c883c79cc7f5e33e253c5e1b00a1575;p=psensor.git fixed type --- diff --git a/www/psensor.js b/www/psensor.js index 79757ea..2092509 100644 --- a/www/psensor.js +++ b/www/psensor.js @@ -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;