Fix vmmap crash when PG is disabled (#709)

pull/712/head
John McCann Cunniff Jr 6 years ago committed by GitHub
parent ca649da0e3
commit cc0c90a4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -245,6 +245,11 @@ def monitor_info_mem():
# TODO: add debug logging
return tuple()
# Handle disabled PG
# This will prevent a crash on abstract architectures
if len(lines) == 1 and lines[0] == 'PG disabled':
return tuple()
pages = []
for line in lines:
dash_idx = line.index('-')

Loading…
Cancel
Save