Calculation error of progress class for Rule PROGRESS notifications
Motivation
----------
The progress class is calculated like `int(float(replicating_locks) / float(total_locks) * 10) * 10`

Modification
------------
It should be calculated like `int(float(total_locks - replicating_locks) / float(total_locks) * 10) * 10`

diff --git a/lib/rucio/core/rule.py b/lib/rucio/core/rule.py
index 1025460ab..8573482aa 100644
--- a/lib/rucio/core/rule.py
+++ b/lib/rucio/core/rule.py
@@ -3047,7 +3047,7 @@ def __progress_class(replicating_locks, total_locks):
     """
 
     try:
-        return int(float(replicating_locks) / float(total_locks) * 10) * 10
+        return int(float(total_locks - replicating_locks) / float(total_locks) * 10) * 10
     except Exception:
         return 0
 
['lib/rucio/core/rule.py']