Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
628e1212
Commit
628e1212
authored
Feb 22, 2012
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use neat units rather than nanoseconds constant.
parent
af414a58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
unionfs/autounion.go
unionfs/autounion.go
+1
-1
unionfs/unionfs_test.go
unionfs/unionfs_test.go
+1
-1
No files found.
unionfs/autounion.go
View file @
628e1212
...
...
@@ -82,7 +82,7 @@ func (me *AutoUnionFs) String() string {
func
(
me
*
AutoUnionFs
)
OnMount
(
nodeFs
*
fuse
.
PathNodeFs
)
{
me
.
nodeFs
=
nodeFs
if
me
.
options
.
UpdateOnMount
{
time
.
AfterFunc
(
0.1e9
,
func
()
{
me
.
updateKnownFses
()
})
time
.
AfterFunc
(
100
*
time
.
Millisecond
,
func
()
{
me
.
updateKnownFses
()
})
}
}
...
...
unionfs/unionfs_test.go
View file @
628e1212
...
...
@@ -701,7 +701,7 @@ func TestUnionFsTruncateTimestamp(t *testing.T) {
fn
:=
wd
+
"/mnt/y"
err
:=
ioutil
.
WriteFile
(
fn
,
[]
byte
(
contents
),
0644
)
CheckSuccess
(
err
)
time
.
Sleep
(
0.2e9
)
time
.
Sleep
(
200
*
time
.
Millisecond
)
truncTs
:=
time
.
Now
()
err
=
os
.
Truncate
(
fn
,
3
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment