2.0b1 patch to make unreachables fully work, and some commentary
Joe Pruett
joey at clean.q7.com
Tue Jan 4 15:23:15 CET 2005
of course i screwed up my patch. i cleaned things up to post (removing
extraneous comments) and messed it up. it should be just a plain
atoi(val).
--- xdata/xsddefault.c.orig 2005-01-03 20:14:18.000000000 -0800
+++ xdata/xsddefault.c 2005-01-04 06:22:38.000000000 -0800
@@ -638,7 +638,7 @@
else if(!strcmp(var,"check_latency"))
temp_hoststatus->latency=strtod(val,NULL);
else if(!strcmp(var,"current_state"))
- temp_hoststatus->status=(atoi(val)>0)?TRUE:FALSE;
+ temp_hoststatus->status=atoi(val);
else if(!strcmp(var,"last_hard_state"))
temp_hoststatus->last_hard_state=atoi(val);
else if(!strcmp(var,"plugin_output"))
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
More information about the Developers
mailing list