[Nagiosplug-devel] check_load arg parsing bugfix and cleanup
Andreas Ericsson
ae at op5.se
Fri May 27 08:56:57 CEST 2005
Ahoy.
Here's a patch to check_load.c which removes a lot of duplicate code and
some unnecessary complexity. It also fixes the argument parsing bug.
LOC count is down by 10% and speed is up by about 15, so I guess that's
a good thing.
Apply with patch -p1 < nagiosplug-check_load.diff
Next I'll rework the api for running commands, since that's the area
where most plugins duplicate efforts and does so in a very non-efficient
way. If someone else is already working on this, gimme a holler so we
can coordinate the efforts.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagiosplug-check_load.diff
URL: <http://nagios-plugins.org/archive/devel/attachments/20050527/f4f0093b/attachment.ksh>
More information about the Devel
mailing list