fixed file date error on logfile for AST_VDupdate.pl

git-svn-id: svn://192.168.202.10@203 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2006-08-23 10:51:39 +00:00
parent b26bd91407
commit 1c542ff10c
+2 -1
View File
@@ -62,6 +62,7 @@ if ($mday < 10) {$mday = "0$mday";}
if ($hour < 10) {$Fhour = "0$hour";} if ($hour < 10) {$Fhour = "0$hour";}
if ($min < 10) {$min = "0$min";} if ($min < 10) {$min = "0$min";}
if ($sec < 10) {$sec = "0$sec";} if ($sec < 10) {$sec = "0$sec";}
$file_date = "$year-$mon-$mday";
$now_date = "$year-$mon-$mday $hour:$min:$sec"; $now_date = "$year-$mon-$mday $hour:$min:$sec";
$VDL_date = "$year-$mon-$mday 00:00:01"; $VDL_date = "$year-$mon-$mday 00:00:01";
@@ -1463,7 +1464,7 @@ sub adaptive_logger
{ {
if ($SYSLOG) if ($SYSLOG)
{ {
$VDHCLOGfile = "$PATHlogs/adaptive-$campaign_id[$i].$year-$mon-$mday"; $VDHCLOGfile = "$PATHlogs/adaptive-$campaign_id[$i].$file_date";
### open the log file for writing ### ### open the log file for writing ###
open(Aout, ">>$VDHCLOGfile") open(Aout, ">>$VDHCLOGfile")