Skip to content

Commit

Permalink
Compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Mar 14, 2024
1 parent 56ae8ec commit 49e0b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlogql.v
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mut:

struct Data {
mut:
res_type string [json: 'resultType']
res_type string @[json: 'resultType']
result []Result
}

Expand All @@ -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{
Expand Down

0 comments on commit 49e0b8b

Please sign in to comment.