tracker bug #2166612)
* Allow more than 9 CPUs for CPU stats (bug 2155500)
* Fix broken $execbar (bug 2133709)
+ * Don't put unit with hddtemp values for consistency (bug 2133107)
2008-12-06
* Switching from svn to git repository. The repo can be viewed from
OBJ(hddtemp) {
if (obj->data.hddtemp.update_time < current_update_time - 30) {
char *str = get_hddtemp_info(obj->data.hddtemp.dev,
- obj->data.hddtemp.addr, obj->data.hddtemp.port, &obj->data.hddtemp.unit);
+ obj->data.hddtemp.addr, obj->data.hddtemp.port/*, &obj->data.hddtemp.unit*/);
if (str) {
strncpy(obj->data.hddtemp.temp, str, text_buffer_size);
} else {
}
if (!obj->data.hddtemp.temp) {
snprintf(p, p_max_size, "N/A");
- } else if (obj->data.hddtemp.unit == '*') {
+ } else/* if (obj->data.hddtemp.unit == '*')*/ {
snprintf(p, p_max_size, "%s", obj->data.hddtemp.temp);
- } else {
- snprintf(p, p_max_size, "%s%c", obj->data.hddtemp.temp, obj->data.hddtemp.unit);
+/* } else {
+ snprintf(p, p_max_size, "%s%c", obj->data.hddtemp.temp, obj->data.hddtemp.unit);*/
}
}
#endif
return 0;
}
-char *get_hddtemp_info(char *dev, char *hostaddr, int port, char *unit)
+char *get_hddtemp_info(char *dev, char *hostaddr, int port/*, char *unit*/)
{
int sockfd = 0;
struct hostent he, *he_res = 0;
}
*p = '\0';
p++;
- *unit = *p;
+// *unit = *p;
if (!strncmp(out, "NA", 2)) {
strncpy(buf, "N/A", BUFLEN);
r = buf;
#define HDDTEMP_H_
int scan_hddtemp(const char *arg, char **dev, char **addr, int *port, char **temp);
-char *get_hddtemp_info(char *dev, char *addr, int port, char *unit);
+char *get_hddtemp_info(char *dev, char *addr, int port/*, char *unit*/);
#endif /*HDDTEMP_H_*/