ncv can´t handle negative values
19 Feb
2007
19 Feb
'07
6 p.m.
Hi
is there an easy way to change the code so that ncv values can handle negative values.
Regards
- Hansi
19 Feb
19 Feb
10:43 p.m.
New subject: [hobbit] ncv can´t handle negative values
On Mon, Feb 19, 2007 at 07:00:48PM +0100, hansi tesarz wrote:
is there an easy way to change the code so that ncv values can handle negative values.
I think there is: In the hobbit-4.2.0/hobbitd/rrd/do_ncv.c file around line 65 there's this line: l = val + strspn(val, "0123456789."); Add a "-" before the numbers so it becomes l = val + strspn(val, "-0123456789."); Run "make" and copy the hobbit-4.2.0/hobbitd/hobbitd_rrd binary to your ~hobbit/server/bin/ directory (or just run "make install"), then restart Hobbit.
Haven't tested it, but I think it should do the trick.
Regards, Henrik
7065
Age (days ago)
7065
Last active (days ago)
1 comments
2 participants
participants (2)
-
hansi.tesarz@gmail.com
-
henrik@hswn.dk