Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 74 for zeros (0.13 sec)

  1. internal/amztime/parse.go

    	// send the correct format.
    	http.TimeFormat,
    	"Mon, 2 Jan 2006 15:04:05 GMT",
    }
    
    // ParseHeader parses http.TimeFormat with an acceptable
    // extension for http.TimeFormat - return time might be zero
    // if the timeStr is invalid.
    func ParseHeader(timeStr string) (time.Time, error) {
    	for _, dateFormat := range httpTimeFormats {
    		t, err := time.Parse(dateFormat, timeStr)
    		if err == nil {
    			return t, nil
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  2. cmd/api-datatypes.go

    }
    
    // DeleteMarkerMTime is an embedded type containing time.Time for XML marshal
    type DeleteMarkerMTime struct {
    	time.Time
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if t.Time.IsZero() {
    		return nil
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 03 09:28:52 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. cmd/batch-expire_test.go

      prefix: myprefix # (Optional) Prefix under which this job will expire objects matching the rules below.
      rules:
        - type: object  # regular objects with zero or more older versions
          name: NAME # match object names that satisfy the wildcard expression.
          olderThan: 70h # match objects older than this value
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 3K bytes
    - Viewed (0)
  4. cmd/dynamic-timeouts.go

    // newDynamicTimeout returns a new dynamic timeout initialized with timeout value
    func newDynamicTimeout(timeout, minimum time.Duration) *dynamicTimeout {
    	if timeout <= 0 || minimum <= 0 {
    		panic("newDynamicTimeout: negative or zero timeout")
    	}
    	if minimum > timeout {
    		minimum = timeout
    	}
    	return &dynamicTimeout{timeout: int64(timeout), minimum: int64(minimum)}
    }
    
    // Timeout returns the current timeout value
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Aug 19 23:21:05 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  5. internal/logger/audit.go

    		tags := make(map[string]interface{}, len(reqInfo.tags))
    		for _, t := range reqInfo.tags {
    			tags[t.Key] = t.Val
    		}
    		entry.Tags = tags
    		// ignore cases for ttfb when its zero.
    		if timeToFirstByte != 0 {
    			entry.API.TimeToFirstByte = strconv.FormatInt(timeToFirstByte.Nanoseconds(), 10) + "ns"
    			entry.API.TimeToFirstByteInNS = strconv.FormatInt(timeToFirstByte.Nanoseconds(), 10)
    		}
    	} else {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  6. internal/pubsub/pubsub.go

    func (ps *PubSub[T, M]) Subscribers() int32 {
    	return atomic.LoadInt32(&ps.numSubscribers)
    }
    
    // New inits a PubSub system with a limit of maximum
    // subscribers unless zero is specified
    func New[T Maskable, M Maskable](maxSubscribers int32) *PubSub[T, M] {
    	return &PubSub[T, M]{maxSubscribers: maxSubscribers}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 16:57:30 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  7. cmd/erasure-coding.go

    func (e *Erasure) DecodeDataBlocks(data [][]byte) error {
    	isZero := 0
    	for _, b := range data {
    		if len(b) == 0 {
    			isZero++
    			break
    		}
    	}
    	if isZero == 0 || isZero == len(data) {
    		// If all are zero, payload is 0 bytes.
    		return nil
    	}
    	return e.encoder().ReconstructData(data)
    }
    
    // DecodeDataAndParityBlocks decodes the given erasure-coded data and verifies it.
    // It returns an error if the decoding failed.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. cmd/http-stats.go

    }
    
    func (st *HTTPStats) addRequestsInQueue(i int32) {
    	atomic.AddInt32(&st.s3RequestsInQueue, i)
    }
    
    func (st *HTTPStats) incS3RequestsIncoming() {
    	// Golang automatically resets to zero if this overflows
    	atomic.AddUint64(&st.s3RequestsIncoming, 1)
    }
    
    // Converts http stats into struct to be sent back to the client.
    func (st *HTTPStats) toServerHTTPStats(toLowerKeys bool) ServerHTTPStats {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  9. internal/event/target/mysql.go

    		if !filepath.IsAbs(m.QueueDir) {
    			return errors.New("queueDir path should be absolute")
    		}
    	}
    
    	if m.MaxOpenConnections < 0 {
    		return errors.New("maxOpenConnections cannot be less than zero")
    	}
    
    	return nil
    }
    
    // MySQLTarget - MySQL target.
    type MySQLTarget struct {
    	initOnce once.Init
    
    	id         event.TargetID
    	args       MySQLArgs
    	updateStmt *sql.Stmt
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  10. cmd/bucket-metadata.go

    		return b, err
    	}
    	if err == nil {
    		b.defaultTimestamps()
    	}
    
    	// If bucket metadata is missing look for legacy files,
    	// since we only ever had b.Created as non-zero when
    	// migration was complete in 2020-May release. So this
    	// a check to avoid migrating for buckets that already
    	// have this field set.
    	if b.Created.IsZero() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
Back to top