Commit 628e1212 authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Use neat units rather than nanoseconds constant.

parent af414a58
...@@ -82,7 +82,7 @@ func (me *AutoUnionFs) String() string { ...@@ -82,7 +82,7 @@ func (me *AutoUnionFs) String() string {
func (me *AutoUnionFs) OnMount(nodeFs *fuse.PathNodeFs) { func (me *AutoUnionFs) OnMount(nodeFs *fuse.PathNodeFs) {
me.nodeFs = nodeFs me.nodeFs = nodeFs
if me.options.UpdateOnMount { if me.options.UpdateOnMount {
time.AfterFunc(0.1e9, func() { me.updateKnownFses() }) time.AfterFunc(100 * time.Millisecond, func() { me.updateKnownFses() })
} }
} }
......
...@@ -701,7 +701,7 @@ func TestUnionFsTruncateTimestamp(t *testing.T) { ...@@ -701,7 +701,7 @@ func TestUnionFsTruncateTimestamp(t *testing.T) {
fn := wd + "/mnt/y" fn := wd + "/mnt/y"
err := ioutil.WriteFile(fn, []byte(contents), 0644) err := ioutil.WriteFile(fn, []byte(contents), 0644)
CheckSuccess(err) CheckSuccess(err)
time.Sleep(0.2e9) time.Sleep(200 * time.Millisecond)
truncTs := time.Now() truncTs := time.Now()
err = os.Truncate(fn, 3) err = os.Truncate(fn, 3)
......
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