bug fixes (mechiel lukkien)

This commit is contained in:
rsc 2006-04-12 19:03:03 +00:00
parent fc46abdd9c
commit 434d1b41b6
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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"