diff options
author | Nathan Scott <nathans@redhat.com> | 2020-12-14 11:19:54 +1100 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-12-14 11:56:13 +1100 |
commit | a3db2da4a7eac5287d347529dd8fe7780e57d6c9 (patch) | |
tree | a277b6ce342b4c915d63baf4bd13262cd2a753ac /linux/LinuxProcess.h | |
parent | cf982f2928c874f78b38ce1a715f355923df3f52 (diff) |
Cleanup initialization of jiffies on the Linux platform
Small cleanups - add error handling, remove a local static
variable and refactor LinuxProcess_adjustTime (also rename
it, as its in LinuxProcessList.c not LinuxProcess.c) - and
while there, move the related 'btime' global variable into
LinuxProcessList.c so it can be made static.
Resolves https://github.com/htop-dev/htop/issues/384
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r-- | linux/LinuxProcess.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index 3c1e7e75..c9e095d8 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -191,8 +191,6 @@ static inline bool Process_isUserlandThread(const Process* this) { return this->pid != this->tgid; } -extern long long btime; - extern int pageSize; extern int pageSizeKB; |