Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 270 for Time (0.06 sec)

  1. cmd/erasure-healing-common_test.go

    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 1).UTC(),
    			},
    			time.Unix(0, 3).UTC(),
    			3,
    		},
    		{
    			// 2. Tests common time obtained when all elements are equal.
    			[]time.Time{
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    				time.Unix(0, 3).UTC(),
    			},
    Registered: 2024-06-16 00:44
    - Last Modified: 2024-06-10 15:51
    - 23K bytes
    - Viewed (0)
  2. internal/http/listener_test.go

    		{[]string{"unknown-host:65432"}, time.Duration(0), time.Duration(0), time.Duration(0), []bool{true}},                            // 4
    		{[]string{"localhost:65432"}, time.Duration(0), time.Duration(0), time.Duration(0), []bool{false}},                              // 5
    Registered: 2024-06-16 00:44
    - Last Modified: 2024-06-10 17:41
    - 11.8K bytes
    - Viewed (0)
  3. pkg/printers/internalversion/printers_test.go

    		{"an hour ago", translateTimestampSince(metav1.Time{Time: time.Now().Add(-6e12)}), "100m"},
    		{"2 days ago", translateTimestampSince(metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -2)}), "2d"},
    		{"months ago", translateTimestampSince(metav1.Time{Time: time.Now().UTC().AddDate(0, 0, -90)}), "90d"},
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-06-11 14:04
    - 218.6K bytes
    - Viewed (0)
  4. cmd/erasure-healing-common.go

    		if count > maxima {
    			maxima = count
    			latest = etag
    		}
    	}
    
    	// Return the collected common max time, with maxima
    	return latest, maxima
    }
    
    // commonTime returns a maximally occurring time from a list of time.
    func commonTimeAndOccurrence(times []time.Time, group time.Duration) (maxTime time.Time, maxima int) {
    	timeOccurrenceMap := make(map[int64]int, len(times))
    	groupNano := group.Nanoseconds()
    Registered: 2024-06-16 00:44
    - Last Modified: 2024-06-10 15:51
    - 12.5K bytes
    - Viewed (0)
  5. cmd/object-api-datatypes.go

    	Name string
    
    	// Date and time when the bucket was created.
    	Created time.Time
    	Deleted time.Time
    
    	// Bucket features enabled
    	Versioning, ObjectLocking bool
    }
    
    // ObjectInfo - represents object metadata.
    type ObjectInfo struct {
    	// Name of the bucket.
    	Bucket string
    
    	// Name of the object.
    	Name string
    
    	// Date and time when the object was last modified.
    	ModTime time.Time
    Registered: 2024-06-16 00:44
    - Last Modified: 2024-06-10 15:31
    - 20.9K bytes
    - Viewed (0)
  6. cni/pkg/log/uds_test.go

    			continue
    		}
    		// remove scope since it is constant and not needed to test
    		delete(parsedLog, "scope")
    		// check time is there
    		if _, f := parsedLog["time"]; !f {
    			t.Fatalf("log %v did not have time", i)
    		}
    		// but remove time since it changes on each test
    		delete(parsedLog, "time")
    		want := map[string]any{
    			"level": cases[i].level,
    			"msg":   cases[i].msg,
    		}
    		if k := cases[i].key; k != nil {
    Registered: 2024-06-14 15:00
    - Last Modified: 2024-06-12 16:26
    - 4.1K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    	if isGroup {
    		if store.getUsersSysType() == MinIOUsersSysType {
    			g, ok := c.iamGroupsMap[name]
    			if !ok {
    				if err := store.loadGroup(context.Background(), name, c.iamGroupsMap); err != nil {
    					return nil, time.Time{}, err
    				}
    				g, ok = c.iamGroupsMap[name]
    				if !ok {
    					return nil, time.Time{}, errNoSuchGroup
    				}
    			}
    
    Registered: 2024-06-16 00:44
    - Last Modified: 2024-06-13 22:26
    - 75.8K bytes
    - Viewed (0)
  8. cni/pkg/log/uds.go

    )
    
    type UDSLogger struct {
    	mu            sync.Mutex
    	loggingServer *http.Server
    }
    
    type cniLog struct {
    	Level     string         `json:"level"`
    	Time      time.Time      `json:"time"`
    	Msg       string         `json:"msg"`
    	Arbitrary map[string]any `json:"-"`
    }
    
    func NewUDSLogger(level istiolog.Level) *UDSLogger {
    	l := &UDSLogger{}
    	mux := http.NewServeMux()
    Registered: 2024-06-14 15:00
    - Last Modified: 2024-06-12 16:26
    - 4.7K bytes
    - Viewed (0)
  9. src/time/format.go

    //
    // The remainder of this comment describes the handling of time zones.
    //
    // In the absence of a time zone indicator, Parse returns a time in UTC.
    //
    // When parsing a time with a zone offset like -0700, if the offset corresponds
    // to a time zone used by the current location ([Local]), then Parse uses that
    // location and zone in the returned time. Otherwise it records the time as
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-06-11 17:09
    - 49.3K bytes
    - Viewed (0)
  10. src/os/exec_plan9.go

    	return p.status
    }
    
    func (p *ProcessState) sysUsage() any {
    	return p.status
    }
    
    func (p *ProcessState) userTime() time.Duration {
    	return time.Duration(p.status.Time[0]) * time.Millisecond
    }
    
    func (p *ProcessState) systemTime() time.Duration {
    	return time.Duration(p.status.Time[1]) * time.Millisecond
    }
    
    func (p *ProcessState) String() string {
    	if p == nil {
    		return "<nil>"
    	}
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-06-10 22:06
    - 3.4K bytes
    - Viewed (0)
Back to top