Commit 93187899 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fixed time in the summary line of draindiskserver -q. It used to be random,...

Fixed time in the summary line of draindiskserver -q. It used to be random, it's now the current time
parent cb5cc586
......@@ -27,6 +27,7 @@
'''Tool to manage the draining of filesystems and diskservers'''
import sys
import time
import getopt
import castor_tools
import cx_Oracle
......@@ -442,7 +443,7 @@ def queryDrain():
zr = zip(*results)
totFiles, totBytes, totFailedBytes, totSuccessBytes, totFailedFiles, totSuccessFiles = \
sum(zr[6]), sum(zr[7]), sum(zr[11]), sum(zr[12]), sum(zr[13]), sum(zr[14])
data.append(('', 'TOTAL', castor_tools.secsToDate(currentTime),
data.append(('', 'TOTAL', castor_tools.secsToDate(time.time()),
totFiles, castor_tools.nbToDataAmount(totBytes),
totFiles-totFailedFiles-totSuccessFiles,
castor_tools.nbToDataAmount(totBytes-totFailedBytes-totSuccessBytes),
......
Supports Markdown
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