X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fgraph.c;h=06d7c8b4693381263edddcb112f2e3370c5da2df;hp=3dd18d56fa945c9e596f1af07413188ae3dad2a6;hb=e57d7f801ae20f02e0cb28107a89b31fa51de1c1;hpb=6735627cdee1f90e8279d3a9c143a92c960dab18 diff --git a/src/graph.c b/src/graph.c index 3dd18d5..06d7c8b 100644 --- a/src/graph.c +++ b/src/graph.c @@ -240,10 +240,15 @@ graph_update(struct psensor **sensors, max_rpm = get_max_rpm(sensors); mint = get_min_temp(sensors); - strmin = psensor_value_to_string(SENSOR_TYPE_TEMP, mint); + + strmin = psensor_value_to_string(SENSOR_TYPE_TEMP, + mint, + config->temperature_unit == CELCIUS); maxt = get_max_temp(sensors); - strmax = psensor_value_to_string(SENSOR_TYPE_TEMP, maxt); + strmax = psensor_value_to_string(SENSOR_TYPE_TEMP, + maxt, + config->temperature_unit == CELCIUS); str_btime = time_to_str(get_graph_begin_time_s(config)); str_etime = time_to_str(get_graph_end_time_s());