From c0d2cac04c06a091356cfa7a8297e0fa2938856c Mon Sep 17 00:00:00 2001 From: Bert Vandenbroucke <dc-vand2@login7a.pri.cosma7.alces.network> Date: Fri, 24 Sep 2021 09:53:26 +0100 Subject: [PATCH] Implemented safer minus sign trimming in check_mpireports and match_mpireports to correctly deal with size 0 messages. --- tools/check_mpireports.py | 2 +- tools/match_mpireports.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/check_mpireports.py b/tools/check_mpireports.py index 2c6b6a6e0b..72f9b2b674 100755 --- a/tools/check_mpireports.py +++ b/tools/check_mpireports.py @@ -105,7 +105,7 @@ for f in infiles: + "/" + words[tagcol] + "/" - + words[sizecol][1:] + + words[sizecol].replace("-", "") ) if words[typecol] == "send": esends[key] = [line[:-1]] diff --git a/tools/match_mpireports.py b/tools/match_mpireports.py index da8a54512b..dd80ff3dc4 100755 --- a/tools/match_mpireports.py +++ b/tools/match_mpireports.py @@ -102,7 +102,7 @@ for f in infiles: + "/" + words[tagcol] + "/" - + words[sizecol][1:] + + words[sizecol].replace("-", "") ) if not key in recvs: -- GitLab