Rewrite report_final() in flowgrind.c