File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,9 @@ void stats_writer::collector::get_metrics_output_fields_wrapper(
336
336
if (machine_info)
337
337
{
338
338
output_fields[" evt.hostname" ] = machine_info->hostname ; /* Explicitly add hostname to log msg in case hostname rule output field is disabled. */
339
- output_fields[" falco.host_boot_ts" ] = machine_info->boot_ts_epoch ;
339
+ // This line generates a SIGTRAP in zig debug builds if the casting is removed.
340
+ // It seems caused by the pragma pack for the scap_machine_info structure.
341
+ output_fields[" falco.host_boot_ts" ] = (uint64_t )machine_info->boot_ts_epoch ;
340
342
output_fields[" falco.host_num_cpus" ] = machine_info->num_cpus ;
341
343
}
342
344
output_fields[" falco.outputs_queue_num_drops" ] = m_writer->m_outputs ->get_outputs_queue_num_drops ();
You can’t perform that action at this time.
0 commit comments