From 49e0b8bb86eaa17515b08de827cdaf27a960b289 Mon Sep 17 00:00:00 2001 From: Lorenzo Mangani Date: Thu, 14 Mar 2024 15:41:56 +0100 Subject: [PATCH] Compatibility fixes --- vlogql.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlogql.v b/vlogql.v index df5246d..f454db3 100644 --- a/vlogql.v +++ b/vlogql.v @@ -35,7 +35,7 @@ mut: struct Data { mut: - res_type string [json: 'resultType'] + res_type string @[json: 'resultType'] result []Result } @@ -62,7 +62,7 @@ fn fetch_logs(app App) { for log in row.values { if app.ts { ts_microseconds := ((log[0].i64())%1000000000)/1000 - ts := time.unix2(log[0].i64()/1000000000,int(ts_microseconds)) + ts := time.unix_microsecond(log[0].i64()/1000000000,int(ts_microseconds)) println('${ts.format_ss_milli()}: ${log[1]}') } else{