summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 41b639b)
raw | patch | inline | side by side (parent: 41b639b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 12 Aug 2008 06:48:37 +0000 (06:48 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 12 Aug 2008 06:48:37 +0000 (06:48 +0000) |
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 57a1bb6d8b3a6676fce98aa45f83f10685ca97a2..7ff68872fed8935986cda2945f2ac1040ca3faf7 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (im.imginfo) {
rrd_infoval_t info;
-
+ char *filename;
+ filename=im.graphfile+strlen(im.graphfile);
+ while(filename > im.graphfile) {
+ if (*(filename-1)=='/' || *(filename-1)=='\\' ) break;
+ filename--;
+ }
info.u_str =
sprintf_alloc(im.imginfo,
- im.graphfile,
+ filename,
(long) (im.zoom *
im.ximg), (long) (im.zoom * im.yimg));
grinfo_push(&im, sprintf_alloc("image_info"), RD_I_STR, info);