diff options
author | Russ Cox <rsc@swtch.com> | 2007-10-29 14:33:17 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2007-10-29 14:33:17 -0400 |
commit | 45ac814c8609174199cadb6f1bbb4baf7c12c94a (patch) | |
tree | 49f4b2120a36b080a0ffe8f9988c21db7b97656c /src/cmd/venti/srv/httpd.c | |
parent | c5a183de108e5685305734d5cf984b58bb0d614a (diff) | |
download | plan9port-45ac814c8609174199cadb6f1bbb4baf7c12c94a.tar.gz plan9port-45ac814c8609174199cadb6f1bbb4baf7c12c94a.tar.bz2 plan9port-45ac814c8609174199cadb6f1bbb4baf7c12c94a.zip |
venti: fix sync deadlock, add /proc stub
Diffstat (limited to 'src/cmd/venti/srv/httpd.c')
-rw-r--r-- | src/cmd/venti/srv/httpd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/venti/srv/httpd.c b/src/cmd/venti/srv/httpd.c index 51d8b9a1..5e4bbe74 100644 --- a/src/cmd/venti/srv/httpd.c +++ b/src/cmd/venti/srv/httpd.c @@ -69,6 +69,7 @@ httpdinit(char *address, char *dir) httpdobj("/emptydcache", hdcacheempty); httpdobj("/disk", hdisk); httpdobj("/debug", hdebug); + httpdobj("/proc/", hproc); if(vtproc(listenproc, address) < 0) return -1; @@ -565,11 +566,11 @@ darena(Hio *hout, Arena *arena) if(scorecmp(zeroscore, arena->score) != 0) hprint(hout, "\tscore=%V\n", arena->score); - hprint(hout, "\tmem: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", + hprint(hout, "\twritten: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", arena->memstats.clumps, arena->memstats.cclumps, arena->memstats.uncsize, arena->memstats.used - arena->memstats.clumps * ClumpSize, arena->memstats.used + arena->memstats.clumps * ClumpInfoSize); - hprint(hout, "\tdisk: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", + hprint(hout, "\tindexed: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", arena->diskstats.clumps, arena->diskstats.cclumps, arena->diskstats.uncsize, arena->diskstats.used - arena->diskstats.clumps * ClumpSize, arena->diskstats.used + arena->diskstats.clumps * ClumpInfoSize); |