diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/data_management.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data_management.c b/src/data_management.c index eec36ce..e27b9cd 100644 --- a/src/data_management.c +++ b/src/data_management.c @@ -102,6 +102,7 @@ inline int insert_sorted_by_size(struct list_head *list, struct list_node *node) return -3; } + inline int insert_sorted_by_time(struct list_head *list, struct list_node *node) { if (list == NULL) { LOGERR("ERROR: No list given.\n"); return -1; } if (node == NULL) { LOGERR("ERROR: No node given.\n"); return -2; } @@ -192,6 +193,7 @@ inline struct list_head *create_list_sort_reversed(struct list_head *list) { return lh; } + /* This function contains the only time critical code. The loop over * the directory content. */ @@ -255,7 +257,7 @@ struct list_head *get_data_from_directory(char *path) { free(fullpath); closedir(dir); - DBGTRC("Finished reading data from directory\n"); + DBGTRC("DEBUG: Finished reading data from directory\n"); while (lnstack != NULL) { tmp = lnstack; |
