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
This commit is contained in:
Nathan Scott
2020-12-14 11:19:54 +11:00
parent cf982f2928
commit a3db2da4a7
3 changed files with 15 additions and 18 deletions

View File

@ -24,7 +24,6 @@ in the source distribution for its full text.
/* semi-global */
long long btime;
int pageSize;
int pageSizeKB;