From e0eb6257ad9b150636ef0ccc3797b71e6a3e822a Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 22 Jun 2017 08:23:36 +0200 Subject: [PATCH] the switch in disambiguating m[inute] and m[onth] in time spec is 6 not 25. fix for #796 --- doc/rrdfetch.pod | 4 ++-- src/rrd_parsetime.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) * */ -- 2.47.2