1
0
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:
Brenden Matthews 2005-11-10 01:48:36 +00:00
parent 9b2401b36e
commit 6cd662ef13
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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;