mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 05:57:43 +00:00
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. Change-Id: I460172720d76e081ede4381b2718f75386af4285 Reviewed-on: http://gerrit.openafs.org/2843 Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
a99e616d44
commit
e28bb036b8
@ -1379,7 +1379,7 @@ FS_Handler(void)
|
|||||||
lightdata = (struct gator_lightobj *)(curr_line->fetches_lp->o_data);
|
lightdata = (struct gator_lightobj *)(curr_line->fetches_lp->o_data);
|
||||||
if (*curr_probeOK == 0) {
|
if (*curr_probeOK == 0) {
|
||||||
sp = s;
|
sp = s;
|
||||||
sprintf(sp, "%d", curr_stats->TotalFetchs);
|
sprintf(sp, "%u", curr_stats->TotalFetchs);
|
||||||
} else
|
} else
|
||||||
sp = sblank;
|
sp = sblank;
|
||||||
code = mini_justify(sp, /*Src buffer */
|
code = mini_justify(sp, /*Src buffer */
|
||||||
@ -1398,7 +1398,7 @@ FS_Handler(void)
|
|||||||
lightdata = (struct gator_lightobj *)(curr_line->stores_lp->o_data);
|
lightdata = (struct gator_lightobj *)(curr_line->stores_lp->o_data);
|
||||||
if (*curr_probeOK == 0) {
|
if (*curr_probeOK == 0) {
|
||||||
sp = s;
|
sp = s;
|
||||||
sprintf(sp, "%d", curr_stats->TotalStores);
|
sprintf(sp, "%u", curr_stats->TotalStores);
|
||||||
} else
|
} else
|
||||||
sp = sblank;
|
sp = sblank;
|
||||||
code = mini_justify(sp, /*Src buffer */
|
code = mini_justify(sp, /*Src buffer */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user