mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
fixed bug with process stuff being wrong on 64 bit machines
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@385 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
9b2401b36e
commit
6cd662ef13
@ -1,5 +1,8 @@
|
||||
# $Id$
|
||||
|
||||
2005-11-09
|
||||
* Cleaned up top code, bug fixes
|
||||
|
||||
2005-11-08
|
||||
* Fix bug# 1351686. Patch by boojit.
|
||||
* Fixed 1331576 (I think) with bad cpu usage reporting
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "top.h"
|
||||
|
||||
static regex_t *exclusion_expression = 0;
|
||||
static unsigned int g_time = 0;
|
||||
static unsigned long g_time = 0;
|
||||
static unsigned long previous_total = 0;
|
||||
static struct process *first_process = 0;
|
||||
|
||||
@ -49,8 +49,8 @@ static struct process *new_process(int p)
|
||||
|
||||
process->pid = p;
|
||||
process->time_stamp = 0;
|
||||
process->previous_user_time = INT_MAX;
|
||||
process->previous_kernel_time = INT_MAX;
|
||||
process->previous_user_time = ULONG_MAX;
|
||||
process->previous_kernel_time = ULONG_MAX;
|
||||
process->counted = 1;
|
||||
|
||||
|
||||
@ -468,7 +468,6 @@ void sp_acopy(struct sorted_process *sp_head, struct process ** ar, int max_size
|
||||
|
||||
struct sorted_process * sp_cur, * sp_tmp;
|
||||
int x;
|
||||
|
||||
sp_cur = sp_head;
|
||||
for (x=0; x < max_size && sp_cur != NULL; x++) {
|
||||
ar[x] = sp_cur->proc;
|
||||
|
Loading…
Reference in New Issue
Block a user