diff options
author | rsc <devnull@localhost> | 2006-04-12 19:03:03 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-04-12 19:03:03 +0000 |
commit | 434d1b41b61a9771f4cec2ca6c0a00b067a50fa0 (patch) | |
tree | 6defcc5d64c02d43d07b5f90b1aaa650c3524cb7 /src/cmd/venti | |
parent | fc46abdd9ce3bff29f735142ab52fec4fb1bf8a7 (diff) | |
download | plan9port-434d1b41b61a9771f4cec2ca6c0a00b067a50fa0.tar.gz plan9port-434d1b41b61a9771f4cec2ca6c0a00b067a50fa0.tar.bz2 plan9port-434d1b41b61a9771f4cec2ca6c0a00b067a50fa0.zip |
bug fixes (mechiel lukkien)
Diffstat (limited to 'src/cmd/venti')
-rw-r--r-- | src/cmd/venti/devnull.c | 2 | ||||
-rw-r--r-- | src/cmd/venti/srv/bloom.c | 2 | ||||
-rw-r--r-- | 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" |