Browse Source

Modif myps

Loquicom 6 years ago
parent
commit
fe8540c1dd
2 changed files with 9 additions and 9 deletions
  1. 2 6
      README.md
  2. 7 3
      myps.c

+ 2 - 6
README.md

@@ -1,5 +1,5 @@
 # Projet SEC (MySh) Master 1 Artois 2018-2019
-### Brandao Arthur (65%) & Maxence Bacquet (35%)
+### Brandao Arthur (60%) & Maxence Bacquet (40%)
 
 
 
@@ -35,7 +35,7 @@ Absentes :
 
 
 
-## Bug / Fonctionalitées partiels
+## Bugs / Fonctionalitées partiels
 
 Il manque 3 champs dans la commande myps : %CPU, %MEM, TIME. De plus le champ TTY est sous la forme d'un nombre et non d'un texte comme dans la commande `ps -aux`.
 
@@ -47,7 +47,3 @@ Comment appelle-t-on un combat entre un petit pois et une carotte ?
 
 Un bon duel !
 
-
-
-
-

+ 7 - 3
myps.c

@@ -357,7 +357,7 @@ void printps(processus* proc){
 			color = true;
 			break;
 		case 'R':
-			printf(MAGENTA);
+			printf(YELLOW);
 			color = true;
 			break;
 		case 'N':
@@ -365,11 +365,15 @@ void printps(processus* proc){
 			color = true;
 			break;
 		case 'Z':
-			printf(YELLOW);
+			printf(GREEN);
 			color = true;
 			break;
 		case 'T':
-			printf(GREEN);
+			printf(MAGENTA);
+			color = true;
+			break;
+		case 'D':
+			printf(CYAN);
 			color = true;
 			break;
 	}