Read time config from config file

This commit is contained in:
PolynomialDivision 2017-10-04 23:49:57 +02:00
parent de5fbef9d9
commit 54ce3b02c8
7 changed files with 85 additions and 11 deletions

View file

@ -28,8 +28,14 @@ struct probe_metric_s {
int min_probe_count;
};
struct time_config_s {
time_t update_client;
time_t remove_client;
time_t remove_probe;
};
#define SORT_NUM 5
#define TIME_THRESHOLD 30 // every minute
#define TIME_THRESHOLD 120 // every minute
// Probe entrys
typedef struct probe_entry_s {

View file

@ -3,4 +3,6 @@
struct probe_metric_s uci_get_dawn_metric();
struct time_config_s uci_get_time_config();
#endif //DAWN_UCI_H_H