Subversion Repositories Kolibri OS

Rev

Rev 8281 | Rev 8381 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8281 Rev 8353
Line 1... Line 1...
1
/*
1
/*
2
 * System Monitor
2
 * System Monitor
3
 * version 1.3
3
 * version 1.35
4
 * Author: Leency
4
 * Author: Leency
5
*/
5
*/
Line 6... Line 6...
6
 
6
 
Line 216... Line 216...
216
	}
216
	}
217
}
217
}
Line 218... Line 218...
218
 
218
 
219
void SelectList_DrawLine(dword i)
219
void SelectList_DrawLine(dword i)
220
{
220
{
221
	int posy;
-
 
222
	char cpu_use[16];
221
	int posy, j, len;
223
	char mem_use[16];
222
	char cpu_use[16], mem_use[16], mem_use_pretty[16];
224
	dword bg_color;
223
	dword bg_color;
225
	proc_info Process;
224
	proc_info Process;
226
	static unsigned maxcpu;
225
	static unsigned maxcpu;
Line 236... Line 235...
236
	}
235
	}
237
	DrawBar(select_list.x, posy, select_list.w, select_list.item_h, bg_color);
236
	DrawBar(select_list.x, posy, select_list.w, select_list.item_h, bg_color);
Line 238... Line 237...
238
 
237
 
Line 239... Line 238...
239
	WriteText(GAP+5, posy+select_list.text_y, 0x90, 0, #Process.name);
238
	WriteText(GAP+5, posy+select_list.text_y, 0x90, 0, #Process.name);
-
 
239
 
240
 
240
	if (Process.use_memory < 3670016000) 
-
 
241
	{
-
 
242
		sprintf(#mem_use, "%i", Process.use_memory/1024);
-
 
243
		len = strlen(#mem_use);
-
 
244
		strcpy(#mem_use_pretty, "               ");
-
 
245
 
-
 
246
		for (j=1; j<=len; j++) {
-
 
247
			EDI = sizeof(mem_use_pretty)-1-j - calc(j/4);
-
 
248
			mem_use_pretty[EDI] = mem_use[len-j];
241
	if (Process.use_memory < 3670016000) {
249
		}
242
		sprintf(#mem_use, "%i", Process.use_memory/1024);
250
 
Line 243... Line 251...
243
		WriteText(GAP+123 - calc(strlen(#mem_use)-6*8), posy+select_list.text_y, 0x90, 0x444444, #mem_use);		
251
		WriteText(GAP+109, posy+select_list.text_y, 0x90, 0x444444, #mem_use_pretty+16-9);
244
	}
252
	}
245
 
253