asmon: Remove set but unused variables.
This commit is contained in:
parent
2870043ec4
commit
ada83f08a9
1 changed files with 2 additions and 5 deletions
|
@ -472,7 +472,7 @@ void DrawCPU(void)
|
||||||
/* Load Average */
|
/* Load Average */
|
||||||
void DrawLoad(void)
|
void DrawLoad(void)
|
||||||
{
|
{
|
||||||
int tempy, tempa, i;
|
int tempy, tempa;
|
||||||
static float oldv = -1.0;
|
static float oldv = -1.0;
|
||||||
float ftmp;
|
float ftmp;
|
||||||
|
|
||||||
|
@ -489,7 +489,6 @@ void DrawLoad(void)
|
||||||
if(oldv != ftmp)
|
if(oldv != ftmp)
|
||||||
{
|
{
|
||||||
oldv = ftmp;
|
oldv = ftmp;
|
||||||
i=ftmp*26;
|
|
||||||
tempa=(ftmp+0.005)*100;
|
tempa=(ftmp+0.005)*100;
|
||||||
tempy=tempa%10;
|
tempy=tempa%10;
|
||||||
copyXPMArea(3+(tempy*6),66,6,9,50,5);
|
copyXPMArea(3+(tempy*6),66,6,9,50,5);
|
||||||
|
@ -612,7 +611,7 @@ float DrawMemSwap(float total, int allmem)
|
||||||
char junk[128];
|
char junk[128];
|
||||||
float used, freeM, shared, buffers, cached, swaptotal,
|
float used, freeM, shared, buffers, cached, swaptotal,
|
||||||
swapused, swapfreeM;
|
swapused, swapfreeM;
|
||||||
unsigned long MEMshar,MEMbuff,MEMcach, MEMswap;
|
unsigned long MEMshar,MEMbuff, MEMswap;
|
||||||
int tempy, tempa;
|
int tempy, tempa;
|
||||||
|
|
||||||
if( has_kern26 > 0 )
|
if( has_kern26 > 0 )
|
||||||
|
@ -671,11 +670,9 @@ float DrawMemSwap(float total, int allmem)
|
||||||
{
|
{
|
||||||
MEMshar=((used-buffers-cached)/total)*27;
|
MEMshar=((used-buffers-cached)/total)*27;
|
||||||
MEMbuff=(buffers/total)*27;
|
MEMbuff=(buffers/total)*27;
|
||||||
MEMcach=(cached/total)*27;
|
|
||||||
} else {
|
} else {
|
||||||
MEMshar=((used-buffers-cached)/total)*33;
|
MEMshar=((used-buffers-cached)/total)*33;
|
||||||
MEMbuff=(buffers/total)*33;
|
MEMbuff=(buffers/total)*33;
|
||||||
MEMcach=(cached/total)*33;
|
|
||||||
}
|
}
|
||||||
// refresh
|
// refresh
|
||||||
copyXPMArea(4, 115, 55, 11, 4, 18);
|
copyXPMArea(4, 115, 55, 11, 4, 18);
|
||||||
|
|
Loading…
Reference in a new issue