Commit 0c812d02 authored by Geoff Simmons's avatar Geoff Simmons

Bugfix the bitmask used by govarnishlog to recompute idle time.

This is the time spent sleeping when log reads reach EOL.
parent d63f0994
...@@ -48,7 +48,8 @@ import ( ...@@ -48,7 +48,8 @@ import (
const ( const (
maxIdle = 10 * time.Millisecond maxIdle = 10 * time.Millisecond
minIdle = time.Microsecond minIdle = time.Microsecond
bitmask = ^uint64(1 << 10) // Mask all but the 10 LSBs, changes every 1024, to update idle time.
bitmask = uint64(0xfffffffffffffc00)
) )
var ( var (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment