summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8b6197b)
We are so fast that seconds do not make any sense.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
- INFO(db->ctx, "Opened database in %.8fs\n",
- (double)(end - start) / CLOCKS_PER_SEC);
+ INFO(db->ctx, "Opened database in %.4fms\n",
+ (double)(end - start) / CLOCKS_PER_SEC * 1000);
ERROR(db->ctx, "Could not unmap network nodes section: %s\n", strerror(errno));
}
ERROR(db->ctx, "Could not unmap network nodes section: %s\n", strerror(errno));
}
- if (db->pool)
- loc_stringpool_unref(db->pool);
+ loc_stringpool_unref(db->pool);
loc_unref(db->ctx);
free(db);
loc_unref(db->ctx);
free(db);
clock_t end = clock();
// Log how fast this has been
clock_t end = clock();
// Log how fast this has been
- DEBUG(db->ctx, "Found AS%u in %.8fs\n", as_number,
- (double)(end - start) / CLOCKS_PER_SEC);
+ DEBUG(db->ctx, "Found AS%u in %.4fms\n", as_number,
+ (double)(end - start) / CLOCKS_PER_SEC * 1000);
clock_t end = clock();
// Log how fast this has been
clock_t end = clock();
// Log how fast this has been
- DEBUG(db->ctx, "Executed network search in %.8fs\n",
- (double)(end - start) / CLOCKS_PER_SEC);
+ DEBUG(db->ctx, "Executed network search in %.4fms\n",
+ (double)(end - start) / CLOCKS_PER_SEC * 1000);