]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
allow gG format
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 16 Sep 2014 09:31:11 +0000 (11:31 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Tue, 16 Sep 2014 09:31:31 +0000 (11:31 +0200)
src/rrd_graph.c

index fbb9ec118b66abb7d19a39e7f88fda6cbdeb3b98..685f7e9afb74fcc665a61d61a4670210dff2eb0a 100644 (file)
@@ -4818,7 +4818,7 @@ static int bad_format_check(const char *pattern, char *fmt) {
 int bad_format_imginfo(char *fmt){
     return bad_format_check("^" SAFE_STRING "%s" SAFE_STRING "%lu" SAFE_STRING "%lu" SAFE_STRING "$",fmt);
 }
-#define FLOAT_STRING "%[-+ 0#]?[0-9]*(?:[.][0-9]+)?l[eEfF]"
+#define FLOAT_STRING "%[-+ 0#]?[0-9]*(?:[.][0-9]+)?l[eEfFgG]"
 
 int bad_format_axis(char *fmt){
     return bad_format_check("^" SAFE_STRING FLOAT_STRING SAFE_STRING "$",fmt);