forked from menault/TD2_DEV51_Qualite_Algo
TP2
This commit is contained in:
BIN
Get_ping_from_temp_log.pdf
Normal file
BIN
Get_ping_from_temp_log.pdf
Normal file
Binary file not shown.
35
Rapport.txt
Normal file
35
Rapport.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
Clémence DUCREUX
|
||||
Clément JANNAIRE
|
||||
|
||||
Rapport TD2 :
|
||||
|
||||
daemon.c
|
||||
create_daemon: complexité 3
|
||||
ping_request: complexité 2
|
||||
send_check: complexité 3
|
||||
check_keep_working: complexité 4
|
||||
daemon_work: complexité 3
|
||||
|
||||
db-sqlite.c
|
||||
db_connect: complexité 1
|
||||
db_disconnect: complexité 1
|
||||
insert_hourly_report: complexité 1
|
||||
|
||||
ping-report.c
|
||||
main: complexité 5
|
||||
|
||||
stats.c
|
||||
get_ping_from_temp_log: complexité 14/15 (graph: Get_ping_from__temp_log.pdf)
|
||||
write_ping_log: complexité 4
|
||||
set_stats_ping: complexité 10 (graph: Set_stats_ping.pdf)
|
||||
|
||||
utils.c
|
||||
write_pid_file: complexité 2
|
||||
remove_file: complexité 1
|
||||
|
||||
|
||||
|
||||
Pour simplifier get_ping_from_temp_log, l'idée initiale à été de mettre tout de while dans une nouvelle fonction et dans la fonction
|
||||
de base faire seulement appel à cette nouvelle fonction pour réduire la complixité.
|
||||
|
||||
POur simplifier set_stats_ping....
|
BIN
Set_stats_ping.pdf
Normal file
BIN
Set_stats_ping.pdf
Normal file
Binary file not shown.
@@ -244,6 +244,4 @@ void set_stats_ping(){
|
||||
}else{
|
||||
perror("stats : ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user