: Re: typo?
PATCH 1/1 : Re: typo?
From: Alan D. Brunelle <[email protected]>
Fix output of unplug totals (cut-and-paste error with total caption).
Signed-off-by Alan D. Brunelle <[email protected]>
---
btt/output.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
btt/output.c +2 -2
@@ -466,8 +466,8 @@ void __dip_output_plug_all(FILE *ofp, struct plug_info *p) {fprintf (ofp,"---------- | ---------- ---------- | ----------------\n" );fprintf (ofp,"%10s | %10s %10s | %s\n" , -"DEV" ,"# Plugs" ,"# Timer Us" ,"% Time Q Plugged" ); -fprintf (ofp,"%10s | %10ld(%10ld) | %13.9lf%%\n" ,"OVERALL" , +"Overall" ,"# Plugs" ,"# Timer Us" ,"% Time Q Plugged" ); +fprintf (ofp,"%10s | %10ld(%10ld) | %13.9lf%%\n" ,"Average" , p->n_plugs / n_plugs, p->n_timer_unplugs / n_plugs, p->t_percent / n_plugs);
Quoted 5 lines · Alan D. Brunelle
plain text document attachment (fix-output-unplug)
From: Alan D. Brunelle <[email protected]>Fix output of unplug totals (cut-and-paste error with total caption).
thx!
Quoted 21 lines
Signed-off-by Alan D. Brunelle <[email protected]>---
btt/output.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)btt/output.c +2
-2@@ -466,8 +466,8 @@ void __dip_output_plug_all(FILE *ofp, struct plug_info *p) {fprintf (ofp,"---------- | ---------- ---------- | ----------------\n" );fprintf (ofp,"%10s | %10s %10s | %s\n" , -"DEV" ,"# Plugs" ,"# Timer Us" ,"% Time Q Plugged" ); -fprintf (ofp,"%10s | %10ld(%10ld) | %13.9lf%%\n" ,"OVERALL" , +"Overall" ,"# Plugs" ,"# Timer Us" ,"% Time Q Plugged" ); +fprintf (ofp,"%10s | %10ld(%10ld) | %13.9lf%%\n" ,"Average" , p->n_plugs / n_plugs, p->n_timer_unplugs / n_plugs, p->t_percent / n_plugs);