View | Details | Raw Unified | Return to bug 198682
Collapse All | Expand All

(-)files/extra-patch-pftop.c (-2 / +2 lines)
Lines 321-327 Link Here
321
-		print_fld_rate(FLD_SA, (s->creation > 0) ?
321
-		print_fld_rate(FLD_SA, (s->creation > 0) ?
322
-			       ((double)sz/(double)s->creation) : -1);
322
-			       ((double)sz/(double)s->creation) : -1);
323
+		print_fld_rate(FLD_SA, (s->creation) ?
323
+		print_fld_rate(FLD_SA, (s->creation) ?
324
+			       ((double)sz/PF_TSTAMP((double)s->creation)) : -1);
324
+			       ((double)sz/PF_TSTAMP(s->creation)) : -1);
325
 	}
325
 	}
326
 #else
326
 #else
327
 	print_fld_size(FLD_PKTS, s->packets);
327
 	print_fld_size(FLD_PKTS, s->packets);
Lines 329-335 Link Here
329
-	print_fld_rate(FLD_SA, (s->creation > 0) ?
329
-	print_fld_rate(FLD_SA, (s->creation > 0) ?
330
-		       ((double)s->bytes/(double)s->creation) : -1);
330
-		       ((double)s->bytes/(double)s->creation) : -1);
331
+	print_fld_rate(FLD_SA, (s->creation) ?
331
+	print_fld_rate(FLD_SA, (s->creation) ?
332
+		       ((double)s->bytes/PF_TSTAMP((double)s->creation)) : -1);
332
+		       ((double)s->bytes/PF_TSTAMP(s->creation)) : -1);
333
 
333
 
334
 #endif
334
 #endif
335
 #ifdef HAVE_PFSYNC_STATE
335
 #ifdef HAVE_PFSYNC_STATE

Return to bug 198682