diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.c | 5 | ||||
-rw-r--r-- | src/libutil/util.h | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 8be3fc597..bc58fc70a 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -1191,8 +1191,7 @@ resolve_stat_filename (rspamd_mempool_t * pool, } const gchar * -calculate_check_time (gdouble start_real, gdouble start_virtual, gint resolution, - guint32 *scan_time) +rspamd_log_check_time (gdouble start_real, gdouble start_virtual, gint resolution) { double vdiff, diff, end_real, end_virtual; static gchar res[64]; @@ -1203,8 +1202,6 @@ calculate_check_time (gdouble start_real, gdouble start_virtual, gint resolution vdiff = (end_virtual - start_virtual) * 1000; diff = (end_real - start_real) * 1000; - *scan_time = diff; - sprintf (fmt, "%%.%dfms real, %%.%dfms virtual", resolution, resolution); snprintf (res, sizeof (res), fmt, diff, vdiff); diff --git a/src/libutil/util.h b/src/libutil/util.h index abc949dfc..d3dcdbcf7 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -158,8 +158,7 @@ gchar * resolve_stat_filename (rspamd_mempool_t *pool, gchar *from); const gchar * -calculate_check_time (gdouble start_real, gdouble start_virtual, gint resolution, - guint32 *scan_time); +rspamd_log_check_time (gdouble start_real, gdouble start_virtual, gint resolution); /* * File locking functions |