Crude fix for bandwidth calculations with pseudo-channels
This commit is contained in:
@@ -506,11 +506,13 @@ def memory_utilisation_in_Gibps_without_idle(connection):
|
||||
def memory_utilisation_percent_including_idle(connection):
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("""SELECT SUM(DataStrobeEnd - DataStrobeBegin) FROM Phases""")
|
||||
active = cursor.fetchone()
|
||||
active = cursor.fetchone()[0]
|
||||
if getPseudoChannelMode(connection):
|
||||
active /= 2
|
||||
cursor = connection.cursor()
|
||||
cursor.execute("""SELECT MAX(DataStrobeEnd) FROM Phases""")
|
||||
total = cursor.fetchone()
|
||||
return (active[0] / total[0]) * 100
|
||||
total = cursor.fetchone()[0]
|
||||
return (active / total) * 100
|
||||
|
||||
|
||||
# def refreshMissDecision(connection, calculatedMetrics):
|
||||
|
||||
Reference in New Issue
Block a user