From 5df51a82947f0ff60d57f551c5faa136ad7f6e0f Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 17 Mar 2011 10:43:23 -0500 Subject: [PATCH] viced: Actually print client CPS Client CPS was not getting output on SIGXCPU like the rest of the client information, since the conditional in the CPS loop was never true. Fix this so we traverse the CPS entries correctly. Change-Id: Ic3434000fbf90e96665779f21811bffcc3a19b45 Reviewed-on: http://gerrit.openafs.org/4256 Reviewed-by: Simon Wilkinson Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/viced/host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viced/host.c b/src/viced/host.c index ef2496752..211383aba 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -2774,7 +2774,7 @@ h_PrintClient(struct host *host, int flags, void *rock) client->CPS.prlist_len); (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file); if (client->CPS.prlist_val) { - for (i = 0; i > client->CPS.prlist_len; i++) { + for (i = 0; i < client->CPS.prlist_len; i++) { (void)afs_snprintf(tmpStr, sizeof tmpStr, " %d", client->CPS.prlist_val[i]); (void)STREAM_WRITE(tmpStr, strlen(tmpStr), 1, file); -- 2.39.5