Commit d7a4b64d authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

use localtime the correct way

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 237
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 9a4f7155
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
# #
# $Source: /home/tforb/svnbuild/cvssource/CVS/thof/scr/adm/observer/observer.pl,v $ # $Source: /home/tforb/svnbuild/cvssource/CVS/thof/scr/adm/observer/observer.pl,v $
# $Id: observer.pl,v 1.8 2000-08-15 08:21:54 thof Exp $ # $Id: observer.pl,v 1.9 2000-08-15 08:23:31 thof Exp $
# #
# 17/01/00 by Thomas Forbriger (IfG Stuttgart) # 17/01/00 by Thomas Forbriger (IfG Stuttgart)
# #
...@@ -365,7 +365,7 @@ foreach $client (keys(%OBSERVER_CLIENT)) { ...@@ -365,7 +365,7 @@ foreach $client (keys(%OBSERVER_CLIENT)) {
@ltime=localtime; @ltime=localtime;
$logname=sprintf("%s/%s_%.4d_%.2d_%.2d_%.2d", $logname=sprintf("%s/%s_%.4d_%.2d_%.2d_%.2d",
$OBSERVER_LOGDIR, $OBSERVER_INTERVAL, $OBSERVER_LOGDIR, $OBSERVER_INTERVAL,
$ltime[5]+1900, $ltime[4]+1, $ltime[3]+1, $ltime[2]); $ltime[5]+1900, $ltime[4]+1, $ltime[3], $ltime[2]);
$LOG_MASTER ="$logname.log"; $LOG_MASTER ="$logname.log";
$LOG_PREVSTATUS ="$OBSERVER_LOGDIR/prevstatus.$OBSERVER_INTERVAL.log"; $LOG_PREVSTATUS ="$OBSERVER_LOGDIR/prevstatus.$OBSERVER_INTERVAL.log";
$LOG_STATUS ="$logname.status"; $LOG_STATUS ="$logname.status";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment