diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-12 12:51:18 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-16 19:23:40 +0200 |
commit | 783be7711db0081a77fbcf84fbb63ab2a31ccc05 (patch) | |
tree | d24e2dc8329a3393b764c67810d2778c3feb14b1 /linux/LinuxProcess.c | |
parent | d744dac7ee6a651670387b6cc83878ef82202839 (diff) |
Do not use extra starttime process field on Linux
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r-- | linux/LinuxProcess.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c index ba0779fb..68baf96d 100644 --- a/linux/LinuxProcess.c +++ b/linux/LinuxProcess.c @@ -225,13 +225,6 @@ void LinuxProcess_writeField(Process* this, RichString* str, ProcessField field) case STIME: Process_printTime(str, lp->stime); return; case CUTIME: Process_printTime(str, lp->cutime); return; case CSTIME: Process_printTime(str, lp->cstime); return; - case STARTTIME: { - struct tm date; - time_t starttimewall = btime + (lp->starttime / sysconf(_SC_CLK_TCK)); - (void) localtime_r(&starttimewall, &date); - strftime(buffer, n, ((starttimewall > time(NULL) - 86400) ? "%R " : "%b%d "), &date); - break; - } #ifdef HAVE_TASKSTATS case RCHAR: Process_colorNumber(str, lp->io_rchar, coloring); return; case WCHAR: Process_colorNumber(str, lp->io_wchar, coloring); return; @@ -334,12 +327,6 @@ long LinuxProcess_compare(const void* v1, const void* v2) { case CUTIME: diff = p2->cutime - p1->cutime; goto test_diff; case STIME: diff = p2->stime - p1->stime; goto test_diff; case CSTIME: diff = p2->cstime - p1->cstime; goto test_diff; - case STARTTIME: { - if (p1->starttime == p2->starttime) - return (p1->super.pid - p2->super.pid); - else - return (p1->starttime - p2->starttime); - } #ifdef HAVE_TASKSTATS case RCHAR: diff = p2->io_rchar - p1->io_rchar; goto test_diff; case WCHAR: diff = p2->io_wchar - p1->io_wchar; goto test_diff; |