projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do propper error checking and release memmory when it is not required anymore
[rrdtool.git]
/
examples
/
piped-demo.pl
diff --git
a/examples/piped-demo.pl
b/examples/piped-demo.pl
index
c64992d
..
34a3ff8
100755
(executable)
--- a/
examples/piped-demo.pl
+++ b/
examples/piped-demo.pl
@@
-1,10
+1,10
@@
-#! /usr/
sepp/
bin/perl
+#! /usr/bin/perl
#makes things work when run without install
#makes things work when run without install
-use lib qw( ../
librarie
s/perl-piped/blib/lib ../lib/perl );
+use lib qw( ../
binding
s/perl-piped/blib/lib ../lib/perl );
#makes programm work AFTER install
#makes programm work AFTER install
-use lib qw( /usr/local/rrdtool-1.
0.33
/lib/perl );
+use lib qw( /usr/local/rrdtool-1.
1.0
/lib/perl );
use RRDp;
use RRDp;
@@
-20,8
+20,8
@@
$GIF = "piped-demo.gif";
$PNG = "piped-demo.png";
# some magic to find the correct rrdtol executable
$PNG = "piped-demo.png";
# some magic to find the correct rrdtol executable
-if ( -x "/usr/local/rrdtool-1.
0.33
/bin/rrdtool") {
- RRDp::start "/usr/local/rrdtool-1.
0.33
/bin/rrdtool";
+if ( -x "/usr/local/rrdtool-1.
1.0
/bin/rrdtool") {
+ RRDp::start "/usr/local/rrdtool-1.
1.0
/bin/rrdtool";
} elsif ( -x "../bin/rrdtool") {
RRDp::start "../bin/rrdtool";
} else {
} elsif ( -x "../bin/rrdtool") {
RRDp::start "../bin/rrdtool";
} else {