You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bitshift shift has lower precedence than division, meaning in
MemoryUsageExceededError.__init__ we end up trying to bitshift a float,
which is nonsense (as the expression in the f-string gets interpreted as
(threshold / 1) << 20, and the result of all divisions in python is a
float). Add some parenthesis.
We cannot just write this as `threshold >> 20`, as we care about the
fractional part.
Fixes: 7d1549f ("tests: fix MMIO gaps in memory monitor tool")
Signed-off-by: Patrick Roy <[email protected]>
0 commit comments