Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 868 for unix (0.21 sec)

  1. cmd/erasure-healing-common.go

    	if etag, count := commonETags(etags); count >= quorum {
    		return etag
    	}
    	return ""
    }
    
    // Beginning of unix time is treated as sentinel value here.
    var (
    	timeSentinel     = time.Unix(0, 0).UTC()
    	timeSentinel1970 = time.Unix(0, 1).UTC() // 1970 used for special cases when xlmeta.version == 0
    )
    
    // Boot modTimes up to disk count, setting the value to time sentinel.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  2. internal/jwt/parser_test.go

    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    				"exp": float64(time.Now().Unix() - 100),
    			},
    		},
    		false,
    		-1,
    	},
    	{
    		"basic nbf",
    		"", // autogen
    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    				"nbf": float64(time.Now().Unix() + 100),
    			},
    		},
    		false,
    		-1,
    	},
    	{
    		"expired and nbf",
    		"", // autogen
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 05 19:20:08 GMT 2021
    - 6K bytes
    - Viewed (0)
  3. src/archive/tar/strconv.go

    	if len(ss) > 0 && ss[0] == '-' {
    		return time.Unix(secs, -1*nsecs), nil // Negative correction
    	}
    	return time.Unix(secs, nsecs), nil
    }
    
    // formatPAXTime converts ts into a time of the form %d.%d as described in the
    // PAX specification. This function is capable of negative timestamps.
    func formatPAXTime(ts time.Time) (s string) {
    	secs, nsecs := ts.Unix(), ts.Nanosecond()
    	if nsecs == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/os/33357.md

    The [Stat] function now sets the [ModeSocket] bit for
    files that are Unix sockets on Windows. These files are identified
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 178 bytes
    - Viewed (0)
  5. cmd/erasure-metadata_test.go

    		{
    			fis:            getNFInfo(16, 16, 1603863445, "36a21454-a2ca-11eb-bbaa-93a81c686f21", nil),
    			modTime:        time.Unix(1603863445, 0),
    			expectedErr:    nil,
    			expectedQuorum: 8,
    		},
    		{
    			fis:            getNFInfo(16, 7, 1603863445, "36a21454-a2ca-11eb-bbaa-93a81c686f21", nil),
    			modTime:        time.Unix(1603863445, 0),
    			expectedErr:    InsufficientReadQuorum{},
    			expectedQuorum: 8,
    		},
    		{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  6. internal/disk/fdatasync_linux.go

    func Fdatasync(f *os.File) error {
    	return syscall.Fdatasync(int(f.Fd()))
    }
    
    // FadviseDontNeed invalidates page-cache
    func FadviseDontNeed(f *os.File) error {
    	return unix.Fadvise(int(f.Fd()), 0, 0, unix.FADV_DONTNEED)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  7. internal/disk/stat_solaris.go

    package disk
    
    import (
    	"errors"
    	"fmt"
    
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := unix.Statvfs_t{}
    	if err = unix.Statvfs(path, &s); err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
    	info = Info{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/MoreFilesTest.java

        return Files.createTempFile(tempDir, "test", ".test");
      }
    
      public void testByteSource_size_ofDirectory() throws IOException {
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path dir = fs.getPath("dir");
          Files.createDirectory(dir);
    
          ByteSource source = MoreFiles.asByteSource(dir);
    
          assertThat(source.sizeIfKnown()).isAbsent();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/net_test.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"errors"
    	"net/netip"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    
    	"golang.org/x/sys/unix"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/intstr"
    
    	"istio.io/istio/cni/pkg/ipset"
    	"istio.io/istio/cni/pkg/iptables"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  10. cmd/bucket-stats.go

    func (l *ReplicationLastHour) addsize(sz int64) {
    	min := time.Now().Unix() / 60
    	l.forwardTo(min)
    	winIdx := min % 60
    	l.Totals[winIdx].merge(AccElem{Total: min, Size: sz, N: 1})
    	l.LastMin = min
    }
    
    // Merge all recorded counts of last hour into one
    func (l *ReplicationLastHour) getTotal() AccElem {
    	var res AccElem
    	min := time.Now().Unix() / 60
    	l.forwardTo(min)
    	for _, elem := range l.Totals[:] {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
Back to top