ajout TD2 + test img readme
This commit is contained in:
55
Réponse.md
Normal file
55
Réponse.md
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
## Analyse de la complexité cyclomatique
|
||||||
|
|
||||||
|
### Utils.c
|
||||||
|
|
||||||
|
- **write_pid_file**
|
||||||
|
Complexité cyclomatique : 2 (due au `if` et à la conversion du PID)
|
||||||
|
|
||||||
|
- **remove_file**
|
||||||
|
Complexité cyclomatique : 1
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### ping-reports.c
|
||||||
|
|
||||||
|
- **create_deamon**
|
||||||
|
Complexité cyclomatique : 4 (due au `switch`)
|
||||||
|
|
||||||
|
### db-sqlite.c
|
||||||
|
|
||||||
|
- **db_connect**
|
||||||
|
Complexité cyclomatique : 1
|
||||||
|
|
||||||
|
- **db_disconnect**
|
||||||
|
Complexité cyclomatique : 1
|
||||||
|
|
||||||
|
- **insert_hourly_report**
|
||||||
|
Complexité cyclomatique : 1
|
||||||
|
|
||||||
|
### deamon.c
|
||||||
|
|
||||||
|
- **create_deamon**
|
||||||
|
Complexité cyclomatique : 4 (due au 2 `ìf` et au `for`)
|
||||||
|
|
||||||
|
- **ping_request**
|
||||||
|
Complexité cyclomatique : 2 (due au `if`)
|
||||||
|
|
||||||
|
- **send_check**
|
||||||
|
Complexité cyclomatique : 4 (due au 2 `ìf`)
|
||||||
|
|
||||||
|
- **check_keep_working**
|
||||||
|
Complexité cyclomatique : 4 (due au 3 `ìf` et au `else`)
|
||||||
|
|
||||||
|
- **deamon_work**
|
||||||
|
Complexité cyclomatique : 3 (due au `if` et au `while`)
|
||||||
|
|
||||||
|
### stats.c
|
||||||
|
|
||||||
|
- **set_stats_ping**
|
||||||
|
Complexité cyclomatique : 9 (due au 6 `if` et au `while` + `break`)
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
- **write_ping_log**
|
||||||
|
Complexité cyclomatique : 4 (due au 3 `if` et au `else`)
|
BIN
get_ping_from_temp_log.png
Normal file
BIN
get_ping_from_temp_log.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
Reference in New Issue
Block a user