]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
viced: Actually print client CPS
authorAndrew Deason <adeason@sinenomine.net>
Thu, 17 Mar 2011 15:43:23 +0000 (10:43 -0500)
committerDerrick Brashear <shadow@dementia.org>
Thu, 24 Mar 2011 16:23:15 +0000 (09:23 -0700)
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.

Reviewed-on: http://gerrit.openafs.org/4256
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 5df51a82947f0ff60d57f551c5faa136ad7f6e0f)

Change-Id: Ic710d9ab4da5dc1fdb4a1ffca72590b043bff918
Reviewed-on: http://gerrit.openafs.org/4282
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/viced/host.c

index 4f1dd756132f2e29054bd2e18dc00c8f0d219da7..0698c0d3eec4e0a5da1ca1169916103308f1f892 100644 (file)
@@ -2775,7 +2775,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);