summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-08-16 15:07:00 +0100
committerAlastair Poole <netstar@gmail.com>2020-08-16 15:07:00 +0100
commit604c4040c660ba70f2b5ce6f008ed14db38309b6 (patch)
tree90d518245d724579f9254226264efc90ff0ae03e
parentf9a25db077d7458564ea3e328dece80a2b62986a (diff)
process: start time (macOS).v0.5.3
As usual, ever-changing...What a shame if they would drop this OS midway through all these changes towards some vision. Dear Apple, finish what you have begun...too many wasted man hours bodging all the changes you make between releases (major and minor).
-rw-r--r--src/bin/system/process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/system/process.c b/src/bin/system/process.c
index 6235111..865ce37 100644
--- a/src/bin/system/process.c
+++ b/src/bin/system/process.c
@@ -714,6 +714,7 @@ _proc_pidinfo(size_t pid)
714 p->cpu_time = taskinfo.ptinfo.pti_total_user + 714 p->cpu_time = taskinfo.ptinfo.pti_total_user +
715 taskinfo.ptinfo.pti_total_system; 715 taskinfo.ptinfo.pti_total_system;
716 p->cpu_time /= 10000000; 716 p->cpu_time /= 10000000;
717 p->start = taskinfo.pbsd.pbi_start_tvsec;
717 p->state = _process_state_name(taskinfo.pbsd.pbi_status); 718 p->state = _process_state_name(taskinfo.pbsd.pbi_status);
718 p->mem_size = p->mem_virt = taskinfo.ptinfo.pti_virtual_size; 719 p->mem_size = p->mem_virt = taskinfo.ptinfo.pti_virtual_size;
719 p->mem_rss = taskinfo.ptinfo.pti_resident_size; 720 p->mem_rss = taskinfo.ptinfo.pti_resident_size;
@@ -800,6 +801,7 @@ proc_info_by_pid(int pid)
800 p->cpu_time = taskinfo.ptinfo.pti_total_user + 801 p->cpu_time = taskinfo.ptinfo.pti_total_user +
801 taskinfo.ptinfo.pti_total_system; 802 taskinfo.ptinfo.pti_total_system;
802 p->cpu_time /= 10000000; 803 p->cpu_time /= 10000000;
804 p->start = taskinfo.pbsd.pbi_start_tvsec;
803 p->state = _process_state_name(taskinfo.pbsd.pbi_status); 805 p->state = _process_state_name(taskinfo.pbsd.pbi_status);
804 p->mem_size = p->mem_virt = taskinfo.ptinfo.pti_virtual_size; 806 p->mem_size = p->mem_virt = taskinfo.ptinfo.pti_virtual_size;
805 p->mem_rss = taskinfo.ptinfo.pti_resident_size; 807 p->mem_rss = taskinfo.ptinfo.pti_resident_size;