# Compte rendu TD2 :
## fichier *daemon.c*
**create_daemon**
```M = 4 ```
**ping_request**
```M = 2```
**send_check**
```M = 4```
**check_keep_working**
```M = 4```
**daemon_work**
```M = 3```
## fichier *db-sqlite.c*
**db_connect**
```M = 1```
**db_disconnect**
```M = 1```
**insert_hourly_report**
```M = 1```
## fichier *ping-report.c*
**main**
```M = 5```
## fichier *stats.c*
**get_ping_from_temp_log**
```M = 15```
Graph :
**write_ping_log**
```M = 4```
**set_stats_ping**
```M =```
## fichier *ping-report.c*
**write_pid_file**
```M = 2```
**remove_file**
```M = 1```
## Optimisation