mirror of
https://github.com/diamante0018/MonitorRam.git
synced 2025-05-09 14:04:55 +00:00
Improvement
This commit is contained in:
parent
981ab0ea2a
commit
f1edec4201
@ -62,7 +62,7 @@ void checkStatus(FILE *file, int *currRealMem, int *peakRealMem,
|
||||
}
|
||||
|
||||
int isProcessWild(int currRealMem, int peakRealMem,
|
||||
int currVirtMem, int peakVirtMem, int ID)
|
||||
int currVirtMem, int peakVirtMem, int ID)
|
||||
{
|
||||
if (currRealMem <= MAX_MEMORY)
|
||||
{
|
||||
@ -123,6 +123,12 @@ void setup(const char *pid)
|
||||
}
|
||||
}
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
printf("No process was found\n");
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
pclose(file);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user