<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>Re: [hobbit] ncv can´t handle negative values</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Just for safety, we should add a plus "+" and a comma "," to the string, in case some source of data provides +9,876.54 as a value.<BR>
<BR>
<BR>
--------------------------<BR>
Thomas Kern<BR>
301-903-2211<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: henrik@hswn.dk <henrik@hswn.dk><BR>
To: hobbit@hswn.dk <hobbit@hswn.dk><BR>
Sent: Mon Feb 19 17:43:02 2007<BR>
Subject: Re: [hobbit] ncv can´t handle negative values<BR>
<BR>
On Mon, Feb 19, 2007 at 07:00:48PM +0100, hansi tesarz wrote:<BR>
> is there an easy way to change the code so that ncv values can handle<BR>
> negative values.<BR>
<BR>
I think there is: In the hobbit-4.2.0/hobbitd/rrd/do_ncv.c file around<BR>
line 65 there's this line:<BR>
     l = val + strspn(val, "0123456789.");<BR>
Add a "-" before the numbers so it becomes<BR>
     l = val + strspn(val, "-0123456789.");<BR>
Run "make" and copy the hobbit-4.2.0/hobbitd/hobbitd_rrd binary to your<BR>
~hobbit/server/bin/ directory (or just run "make install"), then restart<BR>
Hobbit.<BR>
<BR>
Haven't tested it, but I think it should do the trick.<BR>
<BR>
<BR>
Regards,<BR>
Henrik<BR>
<BR>
<BR>
To unsubscribe from the hobbit list, send an e-mail to<BR>
hobbit-unsubscribe@hswn.dk<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>