Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7392)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7393)
@@ -18,4 +18,15 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2005/11/12 Daniela Dorner
+
+   * datacenter/macros/buildsequenceentries.C:
+     - fixed typo (be careful: due to this typo the values for 
+       L2TriggerTable in the DB and in the sequence files may be wrong)
+
+   * datacenter/scripts/rmlocks:
+     - fixed condition for removing lock-file
+
+
 
  2005/11/10 Thomas Bretz
Index: /trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C	(revision 7392)
+++ /trunk/MagicSoft/Mars/datacenter/macros/buildsequenceentries.C	(revision 7393)
@@ -418,5 +418,5 @@
     // ========== Request data of sequence ==========
     query = Form("SELECT fSourceKEY, fProjectKEY, "
-                 " fL1TriggerTableKEY, fL1TriggerTableKEY,"
+                 " fL1TriggerTableKEY, fL2TriggerTableKEY,"
                  " fHvSettingsKEY, fDiscriminatorThresholdTableKEY,"
                  " fTriggerDelayTableKEY, fLightConditionsKEY, fTestFlagKEY"
Index: /trunk/MagicSoft/Mars/datacenter/scripts/rmlocks
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/rmlocks	(revision 7392)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/rmlocks	(revision 7393)
@@ -34,19 +34,26 @@
 for file in ${files[@]}
 do 
-#   echo "file: "$file
-   filedate=`date +%Y%m%d%H -r $file`
-   now=`date +%Y%m%d%H`
-   compdate=`expr $now - 13`
+   filedate=`date +%H -r $file`
+   now=`date +%H`
+   compdate=`expr $now - 13 + 24`
 #   echo "date: "$filedate
 #   echo "now: " $now
 #   echo "comp: " $compdate
-   if [ $compdate -gt $filedate ]
+   twelf=12
+   if [ $compdate -gt $twelf ]
+   then
+      filedate2=`expr $filedate + 24`
+   else 
+      filedate2=$filedate
+   fi
+   if [ $compdate -gt $filedate2 ] || [ $filedate2 -gt $now -a $now -gt $twelf ]
    then 
-#      echo "greater -> remove"
       rm -v $file
+      echo "date:  "$filedate
+      echo "date2: "$filedate2
+      echo "now:   "$now
+      echo "comp:  "$compdate
       date
    fi
 done
 
-
-
