diff --git a/Get_ping_from_temp_log.pdf b/Get_ping_from_temp_log.pdf new file mode 100644 index 0000000..710a579 Binary files /dev/null and b/Get_ping_from_temp_log.pdf differ diff --git a/Rapport.txt b/Rapport.txt new file mode 100644 index 0000000..60d8f3b --- /dev/null +++ b/Rapport.txt @@ -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.... \ No newline at end of file diff --git a/Set_stats_ping.pdf b/Set_stats_ping.pdf new file mode 100644 index 0000000..d407d95 Binary files /dev/null and b/Set_stats_ping.pdf differ diff --git a/ping-report/src/stats.c b/ping-report/src/stats.c index 5b343e8..766f774 100644 --- a/ping-report/src/stats.c +++ b/ping-report/src/stats.c @@ -244,6 +244,4 @@ void set_stats_ping(){ }else{ perror("stats : "); } -} - - +} \ No newline at end of file