]> git.sur5r.net Git - bacula/bacula/commitdiff
Turn off get_duration and check_duration functions
authorKern Sibbald <kern@sibbald.com>
Tue, 14 Oct 2008 21:31:27 +0000 (21:31 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 14 Oct 2008 21:31:27 +0000 (21:31 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7798 91ce42f0-d328-0410-95d8-f526ca767f89

regress/scripts/functions

index 3a0ac0022949f23282785739c89d16eb83222de1..6eec2cc4eb671f6217a81625c01a4aa099bfaa3f 100644 (file)
@@ -110,6 +110,25 @@ check_files_written()
     fi
 }
 
+get_duration()
+{
+#    LOG=$1
+#   T=`awk 'BEGIN {t["secs"]=1;t["sec"]=1;t["min"]=60;t["mins"]=60}; /Elapsed time:/ { last=$3*t[$4] } END { print last }' $LOG`
+#    echo $T    
+}
+
+check_duration()
+{
+    LOG=$1
+    TIME=$2
+    OP=${3-gt}
+
+#    T=$(get_duration $LOG)
+#    if [ "$T" -$OP "$TIME" ]; then
+#        print_debug "Expect $OP than $TIME sec, get $T"
+#        bstat=2
+#    fi
+}
 
 run_bacula()
 {