From 59667ab5d2aba473312872169feb6c9373c488f5 Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Thu, 23 Sep 2010 10:15:57 -0400 Subject: [PATCH] scout: display fetch and store counts as unsigned Fetches and stores are already defined as unsigned, so format them as unsigned values when displaying in scout. This fixes the bug where scout shows those counts as negative values on busy servers which have been running for a while. Reviewed-on: http://gerrit.openafs.org/2843 Reviewed-by: Simon Wilkinson Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit e28bb036b85ea90c0ecf8d52a17043374c1fef3a) Change-Id: If4d0a72b94e743dd336f31b4c21da7e68f800f11 Reviewed-on: http://gerrit.openafs.org/2923 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/scout/scout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scout/scout.c b/src/scout/scout.c index 85fced530..78e16d5a0 100644 --- a/src/scout/scout.c +++ b/src/scout/scout.c @@ -1379,7 +1379,7 @@ FS_Handler(void) lightdata = (struct gator_lightobj *)(curr_line->fetches_lp->o_data); if (*curr_probeOK == 0) { sp = s; - sprintf(sp, "%d", curr_stats->TotalFetchs); + sprintf(sp, "%u", curr_stats->TotalFetchs); } else sp = sblank; code = mini_justify(sp, /*Src buffer */ @@ -1398,7 +1398,7 @@ FS_Handler(void) lightdata = (struct gator_lightobj *)(curr_line->stores_lp->o_data); if (*curr_probeOK == 0) { sp = s; - sprintf(sp, "%d", curr_stats->TotalStores); + sprintf(sp, "%u", curr_stats->TotalStores); } else sp = sblank; code = mini_justify(sp, /*Src buffer */ -- 2.39.5