2024-09-17 10:39:28 +02:00
|
|
|
# COMPTE RENDU
|
|
|
|
|
|
|
|
## Fait par VALLAT Guillaume et GENIQUE Florian
|
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
## Calculer la complexité cyclomatique du code donnée
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
### 1. daemon.c :
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* create_daemon() : 4 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* ping_request() : 2 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* send_check() : 3 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* check_keep_working() : 4 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* daemon_work() : 3 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
### 2. db-sqlite.c :
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* db_connect() : 1 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* db_disconnect() : 1 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* insert_hourly_report(): 1 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
### 3. ping-report.c :
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* main() : 4 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
### 4. stats.C :
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* get_ping_from_temp_log() : 11 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* write_ping_log() : 4 complexité cyclomatiquue
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* set_stats_ping() : 9 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
### 5. utils.c :
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* write_pid_file() : 2 complexité cyclomatique
|
2024-09-17 10:39:28 +02:00
|
|
|
|
2024-09-17 10:40:58 +02:00
|
|
|
.* remove_file() : 1 complexité cyclomatique
|