- psensor = psensor_create(id, label, type, values_max_length);
+ if (!strcmp(chip->prefix, "coretemp"))
+ cname = strdup("Intel CPU");
+ else if (!strcmp(chip->prefix, "k10temp")
+ || !strcmp(chip->prefix, "k8temp")
+ || !strcmp(chip->prefix, "fam15h_power"))
+ cname = strdup("AMD CPU");
+ else if (!strcmp(chip->prefix, "nouveau"))
+ cname = strdup("Nvidia GPU");
+ else if (!strcmp(chip->prefix, "via-cputemp"))
+ cname = strdup("VIA CPU");
+ else
+ cname = strdup(chip->prefix);
+
+ psensor = psensor_create(id, label, cname, type, values_max_length);