Imported Upstream version 2.6.4

This commit is contained in:
Arnaud Quette 2012-06-01 15:55:19 +02:00
parent fad6ced6f6
commit fefe62b2bd
257 changed files with 6020 additions and 1394 deletions

View file

@ -56,9 +56,6 @@ static void get_upsdesc(nut_ctype_t *client, const char *upsname)
return;
}
if (!ups_available(ups, client))
return;
if (ups->desc) {
pconf_encode(ups->desc, esc, sizeof(esc));
sendback(client, "UPSDESC %s \"%s\"\n", upsname, esc);
@ -149,6 +146,11 @@ static void get_type(nut_ctype_t *client, const char *upsname, const char *var)
return;
}
if (node->range_list) {
sendback(client, "%s RANGE\n", buf);
return;
}
if (node->flags & ST_FLAG_STRING) {
sendback(client, "%s STRING:%d\n", buf, node->aux);
return;