Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 230 for io_time (0.18 sec)

  1. cmd/event-notification.go

    // ToEvent - converts to notification event.
    func (args eventArgs) ToEvent(escape bool) event.Event {
    	eventTime := UTCNow()
    	uniqueID := fmt.Sprintf("%X", eventTime.UnixNano())
    	if !args.Object.ModTime.IsZero() {
    		uniqueID = fmt.Sprintf("%X", args.Object.ModTime.UnixNano())
    	}
    
    	respElements := map[string]string{
    		"x-amz-request-id": args.RespElements["requestId"],
    		"x-amz-id-2":       args.RespElements["nodeId"],
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. src/compress/gzip/gzip.go

    		}
    		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 {
    			z.buf[8] = 4
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_race_install_cgo.txt

    		os.Exit(1)
    	}
    	filename := strings.TrimSpace(string(b))
    	info, err := os.Stat(filename)
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if err := json.NewEncoder(os.Stdout).Encode(info.ModTime()); err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    }
    -- sametime/sametime.go --
    package main
    
    import (
    	"encoding/json"
    	"fmt"
    	"os"
    	"time"
    )
    
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 27 14:03:15 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  4. cmd/iam-object-store.go

    			// This means that policy was in the old version (without any
    			// timestamp info). We fetch the mod time of the file and save
    			// that as create and update date.
    			p.CreateDate = objInfo.ModTime
    			p.UpdateDate = objInfo.ModTime
    		}
    
    		m[policy] = p
    		return nil
    	}
    }
    
    func (iamOS *IAMObjectStore) loadPolicyDoc(ctx context.Context, policy string, m map[string]PolicyDoc) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  5. cmd/data-scanner-metric.go

    		atomic.AddUint64(&p.operations[s], 1)
    		if s < scannerMetricLastRealtime {
    			p.latency[s].addSize(duration, int64(sz))
    		}
    	}
    }
    
    // incTime will increment time on metric s with a specific duration.
    // Use for s < scannerMetricLastRealtime
    func (p *scannerMetrics) incTime(s scannerMetric, d time.Duration) {
    	atomic.AddUint64(&p.operations[s], 1)
    	if s < scannerMetricLastRealtime {
    		p.latency[s].add(d)
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 25 05:15:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. src/os/stat_plan9.go

    package os
    
    import (
    	"syscall"
    	"time"
    )
    
    const bitSize16 = 2
    
    func fileInfoFromStat(d *syscall.Dir) *fileStat {
    	fs := &fileStat{
    		name:    d.Name,
    		size:    d.Length,
    		modTime: time.Unix(int64(d.Mtime), 0),
    		sys:     d,
    	}
    	fs.mode = FileMode(d.Mode & 0777)
    	if d.Mode&syscall.DMDIR != 0 {
    		fs.mode |= ModeDir
    	}
    	if d.Mode&syscall.DMAPPEND != 0 {
    		fs.mode |= ModeAppend
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_issue6480.txt

    import (
    	"encoding/json"
    	"fmt"
    	"os"
    )
    
    func main() {
    	info, err := os.Stat(os.Args[1])
    	if err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	if err := json.NewEncoder(os.Stdout).Encode(info.ModTime()); err != nil {
    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    }
    -- before/before.go --
    package main
    
    import (
    	"encoding/json"
    	"fmt"
    	"os"
    	"time"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  8. cmd/metacache-entries.go

    	// check both fileInfo's have same number of versions, if not skip
    	// the `other` entry.
    	if len(eVers.versions) != len(oVers.versions) {
    		eTime := eVers.latestModtime()
    		oTime := oVers.latestModtime()
    		if !eTime.Equal(oTime) {
    			if eTime.After(oTime) {
    				return e, false
    			}
    			return other, false
    		}
    		// Tiebreak on version count.
    		if len(eVers.versions) > len(oVers.versions) {
    			return e, false
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 04:34:26 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/cmd/go/internal/cache/cache_test.go

    		t.Helper()
    		file := filepath.Join(c.dir, name[:2], name)
    		info, err := os.Stat(file)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if info.ModTime().Unix() != mtime {
    			t.Fatalf("%s mtime = %d, want %d", name, info.ModTime().Unix(), mtime)
    		}
    	}
    
    	id := ActionID(dummyID(1))
    	PutBytes(c, id, []byte("abc"))
    	entry, _ := c.Get(id)
    	PutBytes(c, ActionID(dummyID(2)), []byte("def"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:49:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    // object should be returned by ObjectLayer.Walk method
    type WalkVersionsSortOrder uint8
    
    const (
    	// WalkVersionsSortAsc - Sort in ascending order of ModTime
    	WalkVersionsSortAsc WalkVersionsSortOrder = iota
    	// WalkVersionsSortDesc - Sort in descending order of ModTime
    	WalkVersionsSortDesc
    )
    
    // ObjectOptions represents object options for ObjectLayer object operations
    type ObjectOptions struct {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top