Added comments for timeSlop.

geesefs-0-30-9
Aaron Jacobs 2015-08-11 06:21:45 +00:00
parent 0bc289ec1b
commit fee78b6548
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ import (
func TestMemFS(t *testing.T) { RunTests(t) }
// TODO(jacobsa): Comments.
// The radius we use for "expect mtime is within"-style assertions. We can't
// share a synchronized clock with the ultimate source of mtimes because with
// writeback caching enabled the kernel manufactures them based on wall time.
const timeSlop = 5 * time.Millisecond
////////////////////////////////////////////////////////////////////////