X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=program%2Fsrc%2Frrd_stat.c;h=bd48ec6c3ec366b27b08fd665eeb306e21e49f3f;hb=42f44336caceae90b9e743f9e6d4c8f7e5bda3a4;hp=c233ca14c93ed8c7c71bb3dbcef79437f0765653;hpb=2e55e478666716d9b1bf67f8f00d30d31115dc5c;p=rrdtool-all.git diff --git a/program/src/rrd_stat.c b/program/src/rrd_stat.c index c233ca14..bd48ec6c 100644 --- a/program/src/rrd_stat.c +++ b/program/src/rrd_stat.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.0.33 Copyright Tobias Oetiker, 1997 - 2000 + * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 ***************************************************************************** * rrd_stat Retreive the header part of an RRD *****************************************************************************/ @@ -29,7 +29,7 @@ rrd_stat(int argc, char **argv) printf("\t %lu \n",rrd.stat_head->pdp_step); #if HAVE_STRFTIME strftime(somestring,200,"%Y-%m-%d %H:%M:%S %Z", - localtime(&rrd.live_head->last_up)); + localtime_r(&rrd.live_head->last_up, &tm)); #else # error "Need strftime" #endif @@ -116,7 +116,7 @@ rrd_stat(int argc, char **argv) timer++; #if HAVE_STRFTIME - strftime(somestring,200,"%Y-%m-%d %H:%M:%S %Z", localtime(&now)); + strftime(somestring,200,"%Y-%m-%d %H:%M:%S %Z", localtime_r(&now, &tm)); #else # error "Need strftime" #endif