[Date Prev] [Date Next] | [Thread Prev] [Thread Next] | [Date Index] [Thread Index] |
Re: [snips-users] Re: hostmon debug errors
|
On Thu, Nov 06, 2003 at 11:29:03AM -0400, Daniel MacKay wrote: > I snooped through the code. The problem is that "hostmon" is looking > through the file using this: > > elsif ( /^\s*(\S+)\s+(\d+)\s+(\S+)(\s+(\S.*)?)?\s*$/ ) { > ($curvar, $curvalue, $curunit, $comment) = ($1, $2, $3, $5); > $comment = "" if (!defined ($comment)); > > and the first (\d+) is not built to handle numbers with decimal > points (or negative values for that matter.) Looks right... make a copy of it and try this one instead: elsif ( /^\s*(\S+)\s+([\d\.]+)\s+(\S+)(\s+(\S.*)?)?\s*$/ ) { ...let me know what breaks. ;-) -- Russell M. Van Tassell russell at loosenut com "This too shall pass" |