Displaying 2 results from an estimated 2 matches for "conf_path".
Did you mean:
config_path
2011 Jan 18
1
[nut-commits] svn commit r2839 - branches/windows_port/scripts/Windows
...nches/windows_port/scripts/Windows/wininit.c Tue Jan 18
> 08:57:03 2011 (r2838)
> +++ branches/windows_port/scripts/Windows/wininit.c Tue Jan 18
> 10:05:01 2011 (r2839)
> @@ -285,8 +285,11 @@
> char fn[SMALLBUF];
> FILE *nutf;
> char buf[SMALLBUF];
> + const char * conf_path;
>
> - snprintf(fn,sizeof(fn),"%s/nut.conf",CONFPATH);
> + conf_path = confpath();
> + snprintf(fn,sizeof(fn),"%s/nut.conf",conf_path);
> + free(conf_path);
This won't work. You can't free() conf_path here, since it is not
dynamically allocated. Use
s...
2006 Jul 24
2
NUT driver scheduler
...t some time (10% from
previst autonomy) and turn on input again.
Looking startAutonomy - stopAutonomy we can know the basic batteries state.
To scheduler the tests I have one new parameter on driver config file (days
between tests) and to record my last batteries test date I created one file
at conf_path/BATT_SCHED_NAME. It's working fine, but I would like know if is
it the best way to store this value.
The first ideia was use crond jobs but I don't would like use crond, then
I'm looking for "time to run" inside driver.
Let me know what you think about.
All the best,
Robe...