ajout du td
This commit is contained in:
parent
637ae9d44d
commit
e49a1be946
5006
Diagramme_get_ping_from_temp_log.mdj
Normal file
5006
Diagramme_get_ping_from_temp_log.mdj
Normal file
File diff suppressed because it is too large
Load Diff
28
README.md
28
README.md
@ -1 +1,29 @@
|
|||||||
Léo Rocher - Lucas Berger
|
Léo Rocher - Lucas Berger
|
||||||
|
|
||||||
|
|
||||||
|
Compte rendu : <br>
|
||||||
|
|
||||||
|
Etape 1 : calcul de la complexité cyclomatique initiale <br>
|
||||||
|
|
||||||
|
daemon.c : <br>
|
||||||
|
create_demon -> 4 <br>
|
||||||
|
sen_check -> 3 <br>
|
||||||
|
check_keep_working -> 4 <br>
|
||||||
|
daemon_work -> 2<br>
|
||||||
|
|
||||||
|
db-sqlite.c : toutes les fonctions = 1 <br>
|
||||||
|
|
||||||
|
ping_report.c : main -> 4 <br>
|
||||||
|
|
||||||
|
stat.c : <br>
|
||||||
|
|
||||||
|
get_ping_from_temp_log -> 13 !<br>
|
||||||
|
On a pas eu le temps de finir le fichier et de faire utils.c <br>
|
||||||
|
|
||||||
|
cf Diagramme ci-joint au dépôt git<br>
|
||||||
|
|
||||||
|
Modification sur get_ping_from_temp_log :<br>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
L71 : changement dans la condition while : while(getline(&read_line,&n,fd) != -1 || read_line == NULL) <br>
|
||||||
|
nouveau nombres de complexité cyclomatique : 11
|
||||||
|
@ -68,11 +68,13 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Read file */
|
/* Read file */
|
||||||
while(getline(&read_line,&n,fd) != -1){
|
while(getline(&read_line,&n,fd) != -1 || read_line == NULL){
|
||||||
|
|
||||||
|
/*
|
||||||
if(read_line == NULL){
|
if(read_line == NULL){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* Exec regex to find ping */
|
/* Exec regex to find ping */
|
||||||
|
|
||||||
@ -123,6 +125,7 @@
|
|||||||
return ping;
|
return ping;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
-- write_ping_log --
|
-- write_ping_log --
|
||||||
Desc :
|
Desc :
|
||||||
|
Loading…
Reference in New Issue
Block a user