From: Tobias Oetiker Date: Thu, 22 Jun 2017 06:23:36 +0000 (+0200) Subject: the switch in disambiguating m[inute] and m[onth] in time spec is 6 not 25. fix for... X-Git-Tag: v1.7.1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0eb6257ad9b150636ef0ccc3797b71e6a3e822a;p=thirdparty%2Frrdtool-1.x.git the switch in disambiguating m[inute] and m[onth] in time spec is 6 not 25. fix for #796 --- diff --git a/doc/rrdfetch.pod b/doc/rrdfetch.pod index e9e9677a..70ecde09 100644 --- a/doc/rrdfetch.pod +++ b/doc/rrdfetch.pod @@ -253,9 +253,9 @@ in the context of hours, minutes, and seconds it means minutes. Out of context (i.e. right after the B<+> or B<-> sign) the meaning of B is guessed from the number it directly follows. -Currently, if the number's absolute value is below 25 it is assumed +Currently, if the number's absolute value is below 6 it is assumed that B means B, otherwise it is treated as B. -(e.g., -25m == -25 minutes, while +24m == +24 months) +(e.g., -6m == -6m minutes, while +5m == +5 months) =back diff --git a/src/rrd_parsetime.c b/src/rrd_parsetime.c index 6bf02f55..4edd2770 100644 --- a/src/rrd_parsetime.c +++ b/src/rrd_parsetime.c @@ -101,9 +101,9 @@ * * 2. Out of context (i.e. right after the '+' or '-' sign) the * meaning of 'm' is guessed from the number it directly follows. - * Currently, if the number absolute value is below 25 it is assumed + * Currently, if the number absolute value is below 6 it is assumed * that 'm' means months, otherwise it is treated as minutes. - * (e.g., -25m == -25 minutes, while +24m == +24 months) + * (e.g., -6m == -6 minutes, while +5m == +5 months) * */