author | anthony <anthony> | |
Mon, 22 May 2006 12:51:48 +0000 (12:51 +0000) | ||
committer | anthony <anthony> | |
Mon, 22 May 2006 12:51:48 +0000 (12:51 +0000) | ||
commit | db336a80e7f9e46170e637cc140756d35a90da66 | |
tree | 8d56713d9770635d26f44398072688c615dc46cb | tree | snapshot |
parent | 25a54a08826915867d1341010ead6d530c526437 | commit | diff |
1. (major) Code no longer calls exit() when it encounters an error. It
will send an appropriate error via syslog instead.
2. Adopted the code recommended by Octo (thx) It was considerably cleaner
and easier to understand. Not to mention the plugin size is smaller. A win
all around ;-) I rearranged some, though.
3. Fixed the indentation. I believe I see what is recommended by octo....
Hopefully, it is now similar to the other plugins.
4. On a failure to connect apcups will log the initial failure via syslog. It will
only log another failure after the integer apcConnStatus rolls over. This should prevent
apcups from overloading syslog.
5. Other minor code cleanups.
will send an appropriate error via syslog instead.
2. Adopted the code recommended by Octo (thx) It was considerably cleaner
and easier to understand. Not to mention the plugin size is smaller. A win
all around ;-) I rearranged some, though.
3. Fixed the indentation. I believe I see what is recommended by octo....
Hopefully, it is now similar to the other plugins.
4. On a failure to connect apcups will log the initial failure via syslog. It will
only log another failure after the integer apcConnStatus rolls over. This should prevent
apcups from overloading syslog.
5. Other minor code cleanups.
src/apcups.c | diff | blob | history |