diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-08-07 12:39:58 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-08-07 12:39:58 +0200 |
| commit | 8006cfb8beeaff436ec80193e0f57fb46c2bb0c7 (patch) | |
| tree | 023d9691c76a189f162fb812397bd37f5210f841 /psutil | |
| parent | 681661ae3a1b082fbc72d4f4a5b611b2783422d0 (diff) | |
| download | psutil-8006cfb8beeaff436ec80193e0f57fb46c2bb0c7.tar.gz | |
fix #603: [Linux] ionice_set value range is incorrect. (patch by spacewander)
Diffstat (limited to 'psutil')
| -rw-r--r-- | psutil/_pslinux.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index 7eb25f51..573944fc 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -1065,9 +1065,9 @@ class Process(object): if not PY3 and not isinstance(value, (int, long)): msg = "value argument is not an integer (gor %r)" % value raise TypeError(msg) - if not 0 <= value <= 8: + if not 0 <= value <= 7: raise ValueError( - "value argument range expected is between 0 and 8") + "value argument range expected is between 0 and 7") if ioclass in (IOPRIO_CLASS_NONE, None): if value: |
