diff --git a/python/eosfstgcd/cta-fst-gcd b/python/eosfstgcd/cta-fst-gcd index ff28cd61e24d5e7dc2d6d6b44a0151543df600bb..257e05aacc8f98e89807a7c7b82fb53af140bbac 100755 --- a/python/eosfstgcd/cta-fst-gcd +++ b/python/eosfstgcd/cta-fst-gcd @@ -188,7 +188,7 @@ class Gc: return result - def eosstagerrm(self, fxid): + def eosstagerrm(self, fxid, freebytes): logger = logging.getLogger('gc') mgmurl = "root://{}".format(self.mgmhost) cmd = "eos {} stagerrm fxid:{}".format(mgmurl, fxid) @@ -197,7 +197,7 @@ class Gc: process = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env) stdout,stderr = process.communicate() if 0 == process.returncode: - logger.info("Executed {}".format(cmd)) + logger.info("minfreebytes={} freebytesbefore={} executed='{}'".format(self.minfreebytes, freebytes, cmd)) def processfile(self, subdir, fstfile): statvfs = os.statvfs(subdir) @@ -210,7 +210,7 @@ class Gc: now = time.time() agesecs = now - statinfo.st_ctime if agesecs > self.gcagesecs: - self.eosstagerrm(fstfile) + self.eosstagerrm(fstfile, freebytes) self.nbfilesconsideredsincelastreport = self.nbfilesconsideredsincelastreport + 1 if self.nbfilesbeforereport == self.nbfilesconsideredsincelastreport: