"AREA:alpha#0022e9:Short",
"STACK:beta#00b871:Demo Text",
"LINE1:gamma#ff0000:Line 1",
- "LINE2:delta#888800:Line 2",
- "LINE3:calc#00ff44:Line 3",
- "LINE3:epsilon#000000:Line 4",
+ "LINE2:delta#888800:Line 2:dashes=5,5",
+ "LINE3:calc#00ff44:Line 3:dashes=10",
+ "LINE3:epsilon#000000:Line 4:dashes",
"HRULE:1500#ff8800:Horizontal Line at 1500",
"PRINT:alpha:AVERAGE:Average Alpha %1.2lf",
"PRINT:alpha:MIN:Min Alpha %1.2lf %s",
} else if ((poscnt>0)&&(strcmp(field,"strftime")==0)) {
key="strftime";
value="1";
+ } else if ((poscnt>0)&&(strcmp(field,"dashes")==0)) {
+ key="dashes";
+ value="5,5";
} else if ((poscnt>0)&&(strcmp(field,"valstrftime")==0)) {
key="vformatter";
value="timestamp";
char* dashes=getKeyValueArgument("dashes",1,pa);
/* if we got dashes */
if (dashes) {
+ gdp->dash = 1;
gdp->offset = 0;
/* count the , in dashes */
int cnt=0;for(char*t=dashes;(*t)&&(t=strchr(t,','));t++,cnt++) {;}
char* dashoffset=getKeyValueArgument("dash-offset",1,pa);
if (dashoffset) {
char* x;
- if (getDouble(dashes,&gdp->offset,&x)) {
+ if (getDouble(dashoffset,&gdp->offset,&x)) {
rrd_set_error("Could not parse dash-offset: %s",dashoffset); return NULL; }
}
}