Fix code formatting.

SVN revision: 49123
This commit is contained in:
Christopher Michael 2010-05-22 03:05:45 +00:00
parent dbf68af02f
commit 0a06d5d298
2 changed files with 35 additions and 29 deletions

View File

@ -331,19 +331,25 @@ temperature_face_update_config(Config_Face *inst)
inst->sensor_type,
(inst->sensor_name != NULL ? inst->sensor_name : "(null)"),
inst->poll_interval);
inst->tempget_exe = ecore_exe_pipe_run(buf,
inst->tempget_exe =
ecore_exe_pipe_run(buf,
ECORE_EXE_PIPE_READ |
ECORE_EXE_PIPE_READ_LINE_BUFFERED |
ECORE_EXE_NOT_LEADER,
inst);
ECORE_EXE_NOT_LEADER, inst);
#ifdef HAVE_EEZE_UDEV
}
else
{/*avoid creating a new poller if possible*/
{
/*avoid creating a new poller if possible*/
if (inst->temp_poller)
ecore_poller_poller_interval_set(inst->temp_poller, inst->poll_interval);
ecore_poller_poller_interval_set(inst->temp_poller,
inst->poll_interval);
else
inst->temp_poller = ecore_poller_add(ECORE_POLLER_CORE, inst->poll_interval, temperature_udev_update_poll, inst);
{
inst->temp_poller =
ecore_poller_add(ECORE_POLLER_CORE, inst->poll_interval,
temperature_udev_update_poll, inst);
}
}
#endif
}
@ -388,7 +394,6 @@ temperature_get_bus_files(const char* bus)
}
free(file);
}
free(name);
}
}

View File

@ -39,7 +39,8 @@ temperature_udev_update(void *data)
{
temp = 0;
EINA_LIST_FOREACH(inst->tempdevs, l, syspath)
{/*FIXME: probably should make a function to count the cpus and loop this */
{
/*FIXME: probably should make a function to count the cpus and loop this */
if ((test = eeze_udev_syspath_get_sysattr(syspath, "temp1_input")))
{
temp += (strtod(test, NULL) / 1000); /* udev reports temp in (celcius * 1000) for some reason */