summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-13 14:26:40 +0200
committercgzones <cgzones@googlemail.com>2020-10-16 19:23:40 +0200
commita63cfc8b7c172aa7e849521a479d39af737681a8 (patch)
treeccc59220f05cfa581ee09018a90ab72c6ef4aa28 /linux
parent783be7711db0081a77fbcf84fbb63ab2a31ccc05 (diff)
Refactor generating starttime string into Process class
Diffstat (limited to 'linux')
-rw-r--r--linux/LinuxProcessList.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c
index ceb7f7bf..6dcc5e5a 100644
--- a/linux/LinuxProcessList.c
+++ b/linux/LinuxProcessList.c
@@ -1035,9 +1035,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, const char*
goto errorReadingProcess;
}
- struct tm date;
- (void) localtime_r(&proc->starttime_ctime, &date);
- strftime(proc->starttime_show, 7, ((proc->starttime_ctime > tv.tv_sec - 86400) ? "%R " : "%b%d "), &date);
+ Process_fillStarttimeBuffer(proc);
ProcessList_add(pl, proc);
} else {