improve rawlog perf

This commit is contained in:
ailin-nemui 2018-10-04 09:21:46 +02:00
commit 05fd64dd16
3 changed files with 9 additions and 14 deletions

View file

@ -501,7 +501,7 @@ static void perl_log_item_fill_hash(HV *hv, LOG_ITEM_REC *item)
static void perl_rawlog_fill_hash(HV *hv, RAWLOG_REC *rawlog)
{
(void) hv_store(hv, "logging", 7, newSViv(rawlog->logging), 0);
(void) hv_store(hv, "nlines", 6, newSViv(rawlog->nlines), 0);
(void) hv_store(hv, "nlines", 6, newSViv(rawlog->lines->length), 0);
}
static void perl_reconnect_fill_hash(HV *hv, RECONNECT_REC *reconnect)