Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for tozero (0.19 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    			case !rule.Expiration.IsDateNull():
    				if now.IsZero() || now.After(rule.Expiration.Date.Time) {
    					events = append(events, Event{
    						Action: DeleteAction,
    						RuleID: rule.ID,
    						Due:    rule.Expiration.Date.Time,
    					})
    				}
    			case !rule.Expiration.IsDaysNull():
    				if expectedExpiry := ExpectedExpiryTime(obj.ModTime, int(rule.Expiration.Days)); now.IsZero() || now.After(expectedExpiry) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 06:41:22 GMT 2024
    - 17K bytes
    - Viewed (0)
  2. cmd/rebalance-admin.go

    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    		if !stopTime.IsZero() { // rebalance is stopped or completed
    			elapsed = stopTime.Sub(ps.Info.StartTime)
    			eta = 0
    		}
    
    		r.Pools[i].Progress = rebalPoolProgress{
    			NumObjects:  ps.NumObjects,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 22 00:56:43 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  3. schema/utils.go

    				continue
    			}
    			loaded[elemKey] = true
    
    			fieldValues := make([]interface{}, len(fields))
    			notZero = false
    			for idx, field := range fields {
    				fieldValues[idx], zero = field.ValueOf(ctx, elem)
    				notZero = notZero || !zero
    			}
    
    			if notZero {
    				dataKey := utils.ToStringKey(fieldValues...)
    				if _, ok := dataResults[dataKey]; !ok {
    					results = append(results, fieldValues)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Aug 19 13:35:14 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  4. internal/bucket/object/lock/lock.go

    	}
    
    	if ret.Mode.Valid() && ret.RetainUntilDate.IsZero() {
    		return &ret, ErrMalformedXML
    	}
    
    	if !ret.Mode.Valid() && !ret.RetainUntilDate.IsZero() {
    		return &ret, ErrMalformedXML
    	}
    
    	t, err := UTCNowNTP()
    	if err != nil {
    		lockLogIf(context.Background(), err)
    		return &ret, ErrPastObjectLockRetainDate
    	}
    
    	if !ret.RetainUntilDate.IsZero() && ret.RetainUntilDate.Before(t) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  5. schema/field.go

    						v = v.Elem()
    					} else {
    						return nil, true
    					}
    				}
    			}
    
    			fv, zero := v.Interface(), v.IsZero()
    			return fv, zero
    		}
    	}
    
    	if field.Serializer != nil {
    		oldValuerOf := field.ValueOf
    		field.ValueOf = func(ctx context.Context, v reflect.Value) (interface{}, bool) {
    			value, zero := oldValuerOf(ctx, v)
    
    			s, ok := value.(SerializerValuerInterface)
    			if !ok {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  6. cmd/object-handlers-common.go

    	if r.Method != http.MethodPut {
    		return false
    	}
    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    	// and don't process the If-Modified-Since header.
    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    		return false
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  7. src/archive/zip/writer.go

    		offset:     uint64(w.cw.count),
    	}
    
    	if strings.HasSuffix(fh.Name, "/") {
    		// Set the compression method to Store to ensure data length is truly zero,
    		// which the writeHeader method always encodes for the size fields.
    		// This is necessary as most compression formats have non-zero lengths
    		// even when compressing an empty string.
    		fh.Method = Store
    		fh.Flags &^= 0x8 // we will not write a data descriptor
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  8. cmd/erasure.go

    				// Calc usage
    				before := cache.Info.LastUpdate
    				var err error
    				cache, err = disk.NSScanner(ctx, cache, updates, healScanMode, nil)
    				if err != nil {
    					if !cache.Info.LastUpdate.IsZero() && cache.Info.LastUpdate.After(before) {
    						scannerLogIf(ctx, cache.save(ctx, er, cacheName))
    					} else {
    						scannerLogIf(ctx, err)
    					}
    					// This ensures that we don't close
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  9. cmd/erasure-multipart.go

    	}
    
    	if opts.WantChecksum != nil && opts.WantChecksum.Type.IsSet() {
    		userDefined[hash.MinIOMultipartChecksum] = opts.WantChecksum.Type.String()
    	}
    
    	modTime := opts.MTime
    	if opts.MTime.IsZero() {
    		modTime = UTCNow()
    	}
    
    	onlineDisks, partsMetadata = shuffleDisksAndPartsMetadata(onlineDisks, partsMetadata, fi)
    
    	// Fill all the necessary metadata.
    	// Update `xl.meta` content on each disks.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  10. misc/cgo/gmp/gmp.go

    introduce a Go variable that points at the C variable (the linker can
    be told to initialize this pointer).  For example, if the gmp library
    provided
    
    	mpz_t zero;
    
    then cgo would rewrite a reference to C.zero by introducing
    
    	var _C_zero *C.mpz_t
    
    and then replacing all instances of C.zero with (*_C_zero).
    
    Cgo's most interesting translation is for functions.  If xxx is a C
    function, then cgo rewrites C.xxx into a new function _C_xxx that
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
Back to top