From 434d1b41b61a9771f4cec2ca6c0a00b067a50fa0 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 12 Apr 2006 19:03:03 +0000 Subject: [PATCH] bug fixes (mechiel lukkien) --- src/cmd/venti/devnull.c | 2 +- src/cmd/venti/srv/bloom.c | 2 +- src/cmd/venti/srv/www/stats.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cmd/venti/devnull.c b/src/cmd/venti/devnull.c index c48a93a5..a8ab6281 100644 --- a/src/cmd/venti/devnull.c +++ b/src/cmd/venti/devnull.c @@ -50,7 +50,7 @@ threadmain(int argc, char **argv) srv = vtlisten(address); if(srv == nil) - sysfatal("vtlisten %s: %r", argv[1]); + sysfatal("vtlisten %s: %s", address); while((r = vtgetreq(srv)) != nil){ r->rx.msgtype = r->tx.msgtype+1; diff --git a/src/cmd/venti/srv/bloom.c b/src/cmd/venti/srv/bloom.c index d0a5c9d9..e8defb4a 100644 --- a/src/cmd/venti/srv/bloom.c +++ b/src/cmd/venti/srv/bloom.c @@ -163,7 +163,7 @@ inbloomfilter(Bloom *b, u8int *score) rlock(&b->lk); r = _inbloomfilter(b, score); runlock(&b->lk); - ms = ms - msec(); + ms = msec() - ms; addstat2(StatBloomLookup, 1, StatBloomLookupTime, ms); if(r) addstat(StatBloomMiss, 1); diff --git a/src/cmd/venti/srv/www/stats.js b/src/cmd/venti/srv/www/stats.js index dd203fc4..0ce559cf 100644 --- a/src/cmd/venti/srv/www/stats.js +++ b/src/cmd/venti/srv/www/stats.js @@ -73,7 +73,7 @@ graphname = new Array( "uncached read RPC time", "rpcwritenewtime/divdiff=rpcwritenew", "fresh write RPC time", - "rpcwriteduptime/divdiff=rpcwritedup", + "rpcwriteoldtime/divdiff=rpcwriteold", "dup write RPC time", "sumreadbyte/diff", @@ -153,7 +153,7 @@ column2 = new Array( "rpcreadcachedtime/divdiff=rpcreadcached", "rpcreaduncachedtime/divdiff=rpcreaduncached", "rpcwritenewtime/divdiff=rpcwritenew", - "rpcwriteduptime/divdiff=rpcwritedup", + "rpcwriteoldtime/divdiff=rpcwriteold", "END"