kubelwagen/vendor/github.com/hanwen/go-fuse/fuse/nodefs/nodefs.go
2018-03-30 11:41:24 -07:00

13 lines
336 B
Go

// Copyright 2016 the Go-FUSE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package nodefs
import "time"
func splitDuration(dt time.Duration, secs *uint64, nsecs *uint32) {
ns := int64(dt)
*nsecs = uint32(ns % 1e9)
*secs = uint64(ns / 1e9)
}