mint = get_min_temp(sensors);
- strmin = psensor_value_to_string(SENSOR_TYPE_TEMP,
- mint,
- config->temperature_unit == CELCIUS);
+ strmin = psensor_value_to_str(SENSOR_TYPE_TEMP,
+ mint,
+ config->temperature_unit == CELCIUS);
maxt = get_max_temp(sensors);
- strmax = psensor_value_to_string(SENSOR_TYPE_TEMP,
- maxt,
- config->temperature_unit == CELCIUS);
+ strmax = psensor_value_to_str(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());
return (f - 32) * (5.0/9.0);
}
-char *psensor_value_to_string(unsigned int type,
- double value,
- int use_celcius)
+char *
+psensor_value_to_str(unsigned int type, double value, int use_celcius)
{
/* should not be possible to exceed 20 characters with temp or
rpm values the .x part is never displayed */
parameter 'type' is SENSOR_TYPE_LMSENSOR_TEMP, SENSOR_TYPE_NVIDIA,
or SENSOR_TYPE_LMSENSOR_FAN
*/
-char *psensor_value_to_string(unsigned int type,
- double value,
- int use_celcius);
+char *psensor_value_to_str(unsigned int type,
+ double value,
+ int use_celcius);
struct psensor **get_all_sensors(int use_libatasmart, int values_max_length);
while (valid && *sensor) {
s = *sensor;
- str = psensor_value_to_string(s->type,
- s->measures[s->values_max_length -
- 1].value,
- use_celcius);
+ str = psensor_value_to_str(s->type,
+ s->measures[s->values_max_length -
+ 1].value,
+ use_celcius);
gtk_list_store_set(GTK_LIST_STORE(model), &iter, COL_TEMP, str,
-1);
free(str);
- str = psensor_value_to_string(s->type, s->min, use_celcius);
+ str = psensor_value_to_str(s->type, s->min, use_celcius);
gtk_list_store_set(GTK_LIST_STORE(model), &iter,
COL_TEMP_MIN, str, -1);
free(str);
- str = psensor_value_to_string(s->type, s->max, use_celcius);
+ str = psensor_value_to_str(s->type, s->max, use_celcius);
gtk_list_store_set(GTK_LIST_STORE(model), &iter,
COL_TEMP_MAX, str, -1);
free(str);