]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
* fix grid rendering for automn time change
authorTobias Oetiker <tobi@oetiker.ch>
Sun, 29 Mar 2015 12:18:28 +0000 (14:18 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Sun, 29 Mar 2015 12:18:28 +0000 (14:18 +0200)
* add extra labeling for really high resolution charts

Makefile.in
src/rrd_graph.c

index 532a6069cc5075fdb0be69dc780d29e3fdd6bf0c..9c1c42968c212461e3e1b294f51bfc890feaf2db 100644 (file)
@@ -88,10 +88,11 @@ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
        $(top_srcdir)/etc/rrdcached.socket.in \
        $(top_srcdir)/etc/rrdcached.service.in \
        $(top_srcdir)/etc/rrdcached-default-lsb.in ABOUT-NLS NEWS TODO \
-       conftools/compile conftools/config.guess \
-       conftools/config.rpath conftools/config.sub conftools/depcomp \
-       conftools/install-sh conftools/missing conftools/ltmain.sh \
-       $(top_srcdir)/conftools/compile \
+       compile conftools/compile config.guess conftools/config.guess \
+       config.rpath conftools/config.rpath config.sub \
+       conftools/config.sub depcomp conftools/depcomp install-sh \
+       conftools/install-sh missing conftools/missing ltmain.sh \
+       conftools/ltmain.sh $(top_srcdir)/conftools/compile \
        $(top_srcdir)/conftools/config.guess \
        $(top_srcdir)/conftools/config.rpath \
        $(top_srcdir)/conftools/config.sub \
index 95130cb188eadfeac8e4b6a0e46696c24fd9c649..168b6f27364762cefefa54f722de9b041d9db0af 100644 (file)
@@ -93,7 +93,11 @@ char week_fmt[128] = "Week %V";
 
 xlab_t    xlab[] = {
     /* 0  1    2          3    4         5   6          7  8   9  */
-    {0.0, 0, TMT_SECOND, 1, TMT_SECOND, 5, TMT_SECOND, 10, 0, "%H:%M:%S"}
+    {0.0, 0, TMT_SECOND, 1, TMT_SECOND, 5, TMT_SECOND, 1, 0, "%H:%M:%S"}
+    ,
+    {0.015, 0, TMT_SECOND, 1, TMT_SECOND, 5, TMT_SECOND, 5, 0, "%H:%M:%S"}
+    ,
+    {0.08, 0, TMT_SECOND, 1, TMT_SECOND, 5, TMT_SECOND, 10, 0, "%H:%M:%S"}
     ,
     {0.15, 0, TMT_SECOND, 5, TMT_SECOND, 15, TMT_SECOND, 30, 0, "%H:%M:%S"}
     ,
@@ -1519,8 +1523,6 @@ time_t find_first_time(
     struct tm tm;
 
     localtime_r(&start, &tm);
-    /* let mktime figure this dst on its own */
-    tm.tm_isdst = -1;
 
     switch (baseint) {
     case TMT_SECOND:
@@ -1590,7 +1592,7 @@ time_t find_next_time(
 
     localtime_r(&current, &tm);
     /* let mktime figure this dst on its own */
-    tm.tm_isdst = -1;
+    //tm.tm_isdst = -1;
 
     int limit = 2;
     switch (baseint) {