Skip to content

Commit

Permalink
Correction in average memory calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarreir committed Jul 2, 2024
1 parent 0c69b3f commit 83933ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandaserver/taskbuffer/OraDBProxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23486,14 +23486,14 @@ def get_average_memory_workers(self, queue, harvester_id):
self.cur.execute(sql_running_and_submitted + comment, var_map)
results = self.cur.fetchone()
try:
average_memory_running_submitted = results[0]
average_memory_running_submitted = results[0] if results[0] is not None else 0
except TypeError:
average_memory_running_submitted = 0

self.cur.execute(sql_running + comment, var_map)
results = self.cur.fetchone()
try:
average_memory_running = results[0]
average_memory_running = results[0] if results[0] is not None else 0
except TypeError:
average_memory_running = 0

Expand Down

0 comments on commit 83933ac

Please sign in to comment.