Skip to content
Browse files

ps_mem.py: scope show_shared_val_accuracy to allow importing

  • Loading branch information...
1 parent edb6e26 commit 613a4b524c23ce0f4a65b4988ceef1bb91e3d16b @briandegeeter briandegeeter committed with
Showing with 3 additions and 3 deletions.
  1. +3 −3 scripts/ps_mem.py
View
6 scripts/ps_mem.py
@@ -294,21 +294,21 @@ def shared_val_accuracy():
return 1
def show_shared_val_accuracy( possible_inacc ):
- if vm_accuracy == -1:
+ if possible_inacc == -1:
sys.stderr.write(
"Warning: Shared memory is not reported by this system.\n"
)
sys.stderr.write(
"Values reported will be too large, and totals are not reported\n"
)
- elif vm_accuracy == 0:
+ elif possible_inacc == 0:
sys.stderr.write(
"Warning: Shared memory is not reported accurately by this system.\n"
)
sys.stderr.write(
"Values reported could be too large, and totals are not reported\n"
)
- elif vm_accuracy == 1:
+ elif possible_inacc == 1:
sys.stderr.write(
"Warning: Shared memory is slightly over-estimated by this system\n"
"for each program, so totals are not reported.\n"

0 comments on commit 613a4b5

Please sign in to comment.
Something went wrong with that request. Please try again.