renamed fct
authorJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 26 Apr 2012 10:43:27 +0000 (10:43 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Thu, 26 Apr 2012 10:43:27 +0000 (10:43 +0000)
src/graph.c
src/lib/psensor.c
src/lib/psensor.h
src/ui_sensorlist.c

index a52b69e..679b9c6 100644 (file)
@@ -241,14 +241,14 @@ graph_update(struct psensor **sensors,
 
        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());
index 4efbdc6..b01c81b 100644 (file)
@@ -210,9 +210,8 @@ double fahrenheit_to_celcius(double f)
        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 */
index 7e0c0d6..30c9925 100644 (file)
@@ -156,9 +156,9 @@ psensor_get_max_current_value(struct psensor **sensors, unsigned int type);
   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);
 
index 2809b51..f4eae39 100644 (file)
@@ -71,21 +71,21 @@ void ui_sensorlist_update(struct ui_psensor *ui)
        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);