pkgsrc/net/hobbitmon/patches/patch-ac

22 lines
733 B
Text

$NetBSD: patch-ac,v 1.3 2005/09/17 21:31:26 minskim Exp $
--- hobbitd/hobbitgraph.c.orig 2005-01-20 03:47:02.000000000 -0800
+++ hobbitd/hobbitgraph.c
@@ -348,6 +348,7 @@ int main(int argc, char *argv[])
DIR *dir;
char **calcpr = NULL;
int argi, pcount, argcount, rrdargcount, xsize, ysize, result;
+ double ymin, ymax;
time_t now;
char timestamp[100];
char graphtitle[1024];
@@ -620,7 +621,8 @@ int main(int argc, char *argv[])
/* All set - generate the graph */
rrd_clear_error();
- result = rrd_graph(rrdargcount, rrdargs, &calcpr, &xsize, &ysize);
+ result = rrd_graph(rrdargcount, rrdargs, &calcpr, &xsize, &ysize,
+ NULL, &ymin, &ymax);
/* Was it OK ? */
if (rrd_test_error() || (result != 0)) {