Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 107 for etime (0.93 sec)

  1. cmd/erasure-server-pool-rebalance.go

    		// to avoid multiple pool leaders herding to update around the same
    		// time.
    		r := rand.New(rand.NewSource(time.Now().UnixNano()))
    		randSleepFor := func() time.Duration {
    			return 5*time.Second + time.Duration(float64(5*time.Second)*r.Float64())
    		}
    
    		timer := time.NewTimer(randSleepFor())
    		defer timer.Stop()
    
    		var (
    			quit     bool
    			traceMsg string
    		)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_cache_inputs.txt

    }
    
    func TestBenchtime(t *testing.T) {
    }
    
    -- mkold.go --
    package main
    
    import (
    	"log"
    	"os"
    	"time"
    )
    
    func main() {
    	d, err := time.ParseDuration(os.Args[1])
    	if err != nil {
    		log.Fatal(err)
    	}
    	path := os.Args[2]
    	old := time.Now().Add(-d)
    	err = os.Chtimes(path, old, old)
    	if err != nil {
    		log.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 22:23:53 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. src/compress/gzip/gzip_test.go

    		t.Fatalf("comment is %q, want %q", r.Comment, "comment")
    	}
    	if string(r.Extra) != "extra" {
    		t.Fatalf("extra is %q, want %q", r.Extra, "extra")
    	}
    	if r.ModTime.Unix() != 1e8 {
    		t.Fatalf("mtime is %d, want %d", r.ModTime.Unix(), uint32(1e8))
    	}
    	if r.Name != "name" {
    		t.Fatalf("name is %q, want %q", r.Name, "name")
    	}
    	if err := r.Close(); err != nil {
    		t.Fatalf("Reader.Close: %v", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:10:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-decom.go

    						}
    						return
    					}
    					if configRetriableErrors(err) {
    						decomLogIf(ctx, fmt.Errorf("Unable to resume decommission of pools %v: %w: retrying..", pools, err))
    						time.Sleep(time.Second + time.Duration(r.Float64()*float64(5*time.Second)))
    						continue
    					}
    					decomLogIf(ctx, fmt.Errorf("Unable to resume decommission of pool %v: %w", pools, err))
    					return
    				}
    			}
    		}()
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 14:30:43 UTC 2024
    - 41.5K bytes
    - Viewed (1)
  5. cmd/erasure-multipart.go

    	drivePath := disk.Endpoint().Path
    
    	readDirFn(pathJoin(drivePath, minioMetaMultipartBucket), func(shaDir string, typ os.FileMode) error {
    		readDirFn(pathJoin(drivePath, minioMetaMultipartBucket, shaDir), func(uploadIDDir string, typ os.FileMode) error {
    			uploadIDPath := pathJoin(shaDir, uploadIDDir)
    			var modTime time.Time
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  6. src/compress/gzip/gzip.go

    			z.buf[3] |= 0x04
    		}
    		if z.Name != "" {
    			z.buf[3] |= 0x08
    		}
    		if z.Comment != "" {
    			z.buf[3] |= 0x10
    		}
    		if z.ModTime.After(time.Unix(0, 0)) {
    			// Section 2.3.1, the zero value for MTIME means that the
    			// modified time is not set.
    			le.PutUint32(z.buf[4:8], uint32(z.ModTime.Unix()))
    		}
    		if z.level == BestCompression {
    			z.buf[8] = 2
    		} else if z.level == BestSpeed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. src/os/types_windows.go

    		return false
    	}
    	e = fs2.loadFileId()
    	if e != nil {
    		return false
    	}
    	return fs1.vol == fs2.vol && fs1.idxhi == fs2.idxhi && fs1.idxlo == fs2.idxlo
    }
    
    // For testing.
    func atime(fi FileInfo) time.Time {
    	return time.Unix(0, fi.Sys().(*syscall.Win32FileAttributeData).LastAccessTime.Nanoseconds())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_wasip1.go

    }
    
    func Getpid() int {
    	return 3
    }
    
    func Getppid() int {
    	return 2
    }
    
    func Gettimeofday(tv *Timeval) error {
    	var time timestamp
    	if errno := clock_time_get(clockRealtime, 1e3, unsafe.Pointer(&time)); errno != 0 {
    		return errno
    	}
    	tv.setTimestamp(time)
    	return nil
    }
    
    func Kill(pid int, signum Signal) error {
    	// WASI does not have the notion of processes nor signal handlers.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    				PAXRecords: map[string]string{"path": ""}, // Should delete "path", but keep "mtime"
    			}, nil},
    			testHeader{Header{
    				Typeflag: TypeReg, Name: "file3",
    			}, nil},
    			testHeader{Header{
    				Typeflag:   TypeReg,
    				Name:       "file4",
    				ModTime:    time.Unix(1400000000, 0),
    				PAXRecords: map[string]string{"mtime": "1400000000"},
    			}, nil},
    			testClose{nil},
    		},
    	}, {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    			hdrs = r.Header
    		}
    
    		opts, err := putOpts(ctx, bucket, object, versionID, hdrs, metadata)
    		if err != nil {
    			return err
    		}
    
    		opts.MTime = info.ModTime()
    		if opts.MTime.Unix() <= 0 {
    			opts.MTime = UTCNow()
    		}
    		opts.IndexCB = idxCb
    
    		retentionMode, retentionDate, legalHold, s3err := checkPutObjectLockAllowed(ctx, r, bucket, object, getObjectInfo, retPerms, holdPerms)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
Back to top