mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-16 02:13:46 +12:00
remove unnecessary uptime param
This commit is contained in:
parent
aae7ae35ca
commit
98036db660
|
@ -1041,7 +1041,7 @@ namespace Proc {
|
|||
}
|
||||
|
||||
//* Get detailed info for selected process
|
||||
void _collect_details(const size_t pid, const uint64_t uptime, vector<proc_info> &procs) {
|
||||
void _collect_details(const size_t pid, vector<proc_info> &procs) {
|
||||
if (pid != detailed.last_pid) {
|
||||
detailed = {};
|
||||
detailed.last_pid = pid;
|
||||
|
@ -1206,7 +1206,7 @@ namespace Proc {
|
|||
|
||||
//? Update the details info box for process if active
|
||||
if (show_detailed and got_detailed) {
|
||||
_collect_details(detailed_pid, round(uptime), current_procs);
|
||||
_collect_details(detailed_pid, current_procs);
|
||||
} else if (show_detailed and not got_detailed and detailed.status != "Dead") {
|
||||
detailed.status = "Dead";
|
||||
redraw = true;
|
||||
|
|
Loading…
Reference in a new issue