From 3cdf2e7bfccc337c7d5cdf13c43224973ddbc795 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Fri, 11 Feb 2011 16:51:31 +0100 Subject: [PATCH] whoops, stupid me --- PLC/Methods/GetBootMedium.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index f050840c..7225b126 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -317,7 +317,7 @@ class GetBootMedium(Method): # and this leads to the old file sitting in there forever # so, if the file is older than 5 minutes, we just trash grace=5 - if os.path.exists(filename) and os.path.getmtime(filename)-time.time() >= (grace*60): + if os.path.exists(filename) and (time.time()-os.path.getmtime(filename)) >= (grace*60): os.unlink(filename) if os.path.exists(filename): raise PLCInvalidArgument, "Resulting file %s already exists - please try again in %d minutes"%\ -- 2.47.0