mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-21 04:43:36 +12:00
Fixed: Process nice value underflowing, issue #461
This commit is contained in:
parent
c52206610d
commit
5a53fb4a2c
|
@ -262,7 +262,7 @@ namespace Proc {
|
|||
double cpu_p{}; // defaults to = 0.0
|
||||
double cpu_c{}; // defaults to = 0.0
|
||||
char state = '0';
|
||||
uint64_t p_nice{}; // defaults to 0
|
||||
int64_t p_nice{}; // defaults to 0
|
||||
uint64_t ppid{}; // defaults to 0
|
||||
uint64_t cpu_s{}; // defaults to 0
|
||||
uint64_t cpu_t{}; // defaults to 0
|
||||
|
|
|
@ -1884,7 +1884,7 @@ namespace Proc {
|
|||
next_x = 19;
|
||||
continue;
|
||||
case 19: //? Nice value
|
||||
new_proc.p_nice = stoull(short_str);
|
||||
new_proc.p_nice = stoll(short_str);
|
||||
continue;
|
||||
case 20: //? Number of threads
|
||||
new_proc.threads = stoull(short_str);
|
||||
|
|
Loading…
Reference in a new issue