From 6433b6fe3d9ab3281709b529a7bdbaeeb81fb0ea Mon Sep 17 00:00:00 2001 From: BlackLight Date: Thu, 17 Feb 2011 03:52:08 +0100 Subject: [PATCH] Small DOT format improvement --- correlation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/correlation.c b/correlation.c index 77ba336..627ca79 100644 --- a/correlation.c +++ b/correlation.c @@ -111,22 +111,22 @@ __AI_correlated_alerts_to_dot ( AI_alert_correlation *corr, FILE *fp ) fprintf ( fp, "\t\"[%d.%d.%d] %s\\n" "%s:%s -> %s:%s\\n" - "starting from %lu" + "starting from %s " "(%d alerts grouped)\" -> " "\"[%d.%d.%d] %s\\n" "%s:%s -> %s:%s\\n" - "starting from %lu" + "starting from %s " "(%d alerts grouped)\";\n", corr->key.a->gid, corr->key.a->sid, corr->key.a->rev, corr->key.a->desc, src_addr1, src_port1, dst_addr1, dst_port1, - corr->key.a->timestamp, + ctime ( &(corr->key.a->timestamp )), corr->key.a->grouped_alerts_count, corr->key.b->gid, corr->key.b->sid, corr->key.b->rev, corr->key.b->desc, src_addr2, src_port2, dst_addr2, dst_port2, - corr->key.b->timestamp, + ctime ( &(corr->key.b->timestamp )), corr->key.b->grouped_alerts_count ); } /* ----- end of function __AI_correlated_alerts_to_dot ----- */