1
0
mirror of https://github.com/gryf/wmtemp.git synced 2026-05-11 00:43:04 +02:00

2 Commits

Author SHA1 Message Date
gryf e89b081f45 Fix for commented out paths for temperature input in config 2017-01-04 10:53:09 +01:00
gryf bc93777806 Fixed typo in readme 2016-12-25 19:24:42 +01:00
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ Every core have three options to change:
file contains a number of temperature in mili-Celsius.
* ``[core]_critical`` - temperature in °C, on which (and beyond) red color would
be used for highlight the entry.
* ``[core]_warninf`` - temperature in °C, on which (and beyond) orange color
* ``[core]_warning`` - temperature in °C, on which (and beyond) orange color
would be used for highlight the entry.
In main directory there is a ``wmtemp_sample`` file, which can be copied to
+5 -5
View File
@@ -230,31 +230,31 @@ void parse_config(struct config *conf) {
strncpy (value, item, MAXLEN);
strip(value);
if (!strcmp(name, "cpu1_path")){
if (strncmp(name, "cpu1_path", 9) == 0){
free(cfg.cpu1.path);
cfg.cpu1.path = malloc(sizeof(value) + 1);
strcpy(cfg.cpu1.path, value);
}
if (!strcmp(name, "cpu2_path")){
if (strncmp(name, "cpu2_path", 9) == 0){
free(cfg.cpu2.path);
cfg.cpu2.path = malloc(sizeof(value) + 1);
strcpy(cfg.cpu2.path, value);
}
if (!strcmp(name, "cpu1_path")){
if (strncmp(name, "cpu3_path", 9) == 0){
free(cfg.cpu3.path);
cfg.cpu3.path = malloc(sizeof(value) + 1);
strcpy(cfg.cpu3.path, value);
}
if (!strcmp(name, "cpu1_path")){
if (strncmp(name, "cpu4_path", 9) == 0){
free(cfg.cpu4.path);
cfg.cpu4.path = malloc(sizeof(value) + 1);
strcpy(cfg.cpu4.path, value);
}
if (!strcmp(name, "gpu_path")){
if (strncmp(name, "gpu_path", 8) == 0){
free(cfg.gpu.path);
cfg.gpu.path = malloc(sizeof(value) + 1);
strcpy(cfg.gpu.path, value);