mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
bug fixes (mechiel lukkien)
This commit is contained in:
parent
fc46abdd9c
commit
434d1b41b6
3 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ threadmain(int argc, char **argv)
|
||||||
|
|
||||||
srv = vtlisten(address);
|
srv = vtlisten(address);
|
||||||
if(srv == nil)
|
if(srv == nil)
|
||||||
sysfatal("vtlisten %s: %r", argv[1]);
|
sysfatal("vtlisten %s: %s", address);
|
||||||
|
|
||||||
while((r = vtgetreq(srv)) != nil){
|
while((r = vtgetreq(srv)) != nil){
|
||||||
r->rx.msgtype = r->tx.msgtype+1;
|
r->rx.msgtype = r->tx.msgtype+1;
|
||||||
|
|
|
@ -163,7 +163,7 @@ inbloomfilter(Bloom *b, u8int *score)
|
||||||
rlock(&b->lk);
|
rlock(&b->lk);
|
||||||
r = _inbloomfilter(b, score);
|
r = _inbloomfilter(b, score);
|
||||||
runlock(&b->lk);
|
runlock(&b->lk);
|
||||||
ms = ms - msec();
|
ms = msec() - ms;
|
||||||
addstat2(StatBloomLookup, 1, StatBloomLookupTime, ms);
|
addstat2(StatBloomLookup, 1, StatBloomLookupTime, ms);
|
||||||
if(r)
|
if(r)
|
||||||
addstat(StatBloomMiss, 1);
|
addstat(StatBloomMiss, 1);
|
||||||
|
|
|
@ -73,7 +73,7 @@ graphname = new Array(
|
||||||
"uncached read RPC time",
|
"uncached read RPC time",
|
||||||
"rpcwritenewtime/divdiff=rpcwritenew",
|
"rpcwritenewtime/divdiff=rpcwritenew",
|
||||||
"fresh write RPC time",
|
"fresh write RPC time",
|
||||||
"rpcwriteduptime/divdiff=rpcwritedup",
|
"rpcwriteoldtime/divdiff=rpcwriteold",
|
||||||
"dup write RPC time",
|
"dup write RPC time",
|
||||||
|
|
||||||
"sumreadbyte/diff",
|
"sumreadbyte/diff",
|
||||||
|
@ -153,7 +153,7 @@ column2 = new Array(
|
||||||
"rpcreadcachedtime/divdiff=rpcreadcached",
|
"rpcreadcachedtime/divdiff=rpcreadcached",
|
||||||
"rpcreaduncachedtime/divdiff=rpcreaduncached",
|
"rpcreaduncachedtime/divdiff=rpcreaduncached",
|
||||||
"rpcwritenewtime/divdiff=rpcwritenew",
|
"rpcwritenewtime/divdiff=rpcwritenew",
|
||||||
"rpcwriteduptime/divdiff=rpcwritedup",
|
"rpcwriteoldtime/divdiff=rpcwriteold",
|
||||||
|
|
||||||
"END"
|
"END"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue