Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 79 for float64 (0.24 sec)

  1. cmd/rebalance-admin.go

    		// i.e. x = c_i*pfc -f_i
    		totalBytesToRebal := float64(ps.InitCapacity)*meta.PercentFreeGoal - float64(ps.InitFreeSpace)
    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:43 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	info, err := s.diskInfoCache.Get()
    	if err != nil {
    		return false
    	}
    	if info.Used == 0 || info.UsedInodes == 0 {
    		return false
    	}
    	return (float64(info.Free)/float64(info.Used)) < almostFilledPercent || (float64(info.FreeInodes)/float64(info.UsedInodes)) < almostFilledPercent
    }
    
    func (s *xlStorage) moveToTrash(filePath string, recursive, immediatePurge bool) (err error) {
    	pathUUID := mustGetUUID()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/metrics-v3-cluster-iam.go

    	m.Set(pluginAuthnServiceTotalRequestsMinute, float64(pluginAuthNMetrics.TotalRequests))
    	lastSyncTime := atomic.LoadUint64(&globalIAMSys.LastRefreshTimeUnixNano)
    	if lastSyncTime != 0 {
    		m.Set(sinceLastSyncMillis, float64((uint64(time.Now().UnixNano())-lastSyncTime)/uint64(time.Millisecond)))
    	}
    	m.Set(syncFailures, float64(atomic.LoadUint64(&globalIAMSys.TotalRefreshFailures)))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 08:20:42 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. cmd/metrics-v3-system-network.go

    	rpcStats := rest.GetRPCStats()
    	if globalIsDistErasure {
    		m.Set(internodeErrorsTotal, float64(rpcStats.Errs))
    		m.Set(internodeDialErrorsTotal, float64(rpcStats.DialErrs))
    		m.Set(internodeDialAvgTimeNanos, float64(rpcStats.DialAvgDuration))
    		m.Set(internodeSentBytesTotal, float64(connStats.internodeOutputBytes))
    		m.Set(internodeRecvBytesTotal, float64(connStats.internodeInputBytes))
    	}
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  5. cmd/metrics-v3-cluster-erasure-set.go

    		setLV := strconv.Itoa(h.SetID)
    		m.Set(erasureSetReadQuorum, float64(h.ReadQuorum),
    			poolIDL, poolLV, setIDL, setLV)
    		m.Set(erasureSetWriteQuorum, float64(h.WriteQuorum),
    			poolIDL, poolLV, setIDL, setLV)
    		m.Set(erasureSetOnlineDrivesCount, float64(h.HealthyDrives),
    			poolIDL, poolLV, setIDL, setLV)
    		m.Set(erasureSetHealingDrivesCount, float64(h.HealingDrives),
    			poolIDL, poolLV, setIDL, setLV)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  6. cmd/bucket-stats.go

    	}
    	if count > 0 {
    		lrg := XferStats{
    			Avg:  lavg / float64(count),
    			Curr: lcurr / float64(count),
    			Peak: lpeak,
    		}
    		sml := XferStats{
    			Avg:  savg / float64(count),
    			Curr: scurr / float64(count),
    			Peak: speak,
    		}
    		qs.XferStats[Large] = lrg
    		qs.XferStats[Small] = sml
    		qs.XferStats[Total] = XferStats{
    			Avg:  (savg + lavg) / float64(count),
    			Curr: (lcurr + scurr) / float64(count),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  7. cmd/metrics-v3-cluster-audit.go

    	audit := logger.CurrentStats()
    	for id, st := range audit {
    		labels := []string{targetID, id}
    		m.Set(auditFailedMessages, float64(st.FailedMessages), labels...)
    		m.Set(auditTargetQueueLength, float64(st.QueueLength), labels...)
    		m.Set(auditTotalMessages, float64(st.TotalMessages), labels...)
    	}
    
    	return nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 09:18:02 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. internal/bucket/bandwidth/monitor_test.go

    	test2Want2 := make(map[BucketOptions]Details)
    	test2Want2[BucketOptions{Name: "bucket", ReplicationARN: "arn"}] = Details{
    		LimitInBytesPerSecond:            1024 * 1024,
    		CurrentBandwidthInBytesPerSecond: exponentialMovingAverage(betaBucket, float64(oneMiB), 2*float64(oneMiB)),
    	}
    
    	test1ActiveBuckets := make(map[BucketOptions]*bucketMeasurement)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. internal/config/identity/plugin/config.go

    	}
    }
    
    // Metrics contains metrics about the authentication plugin service.
    type Metrics struct {
    	LastReachableSecs, LastUnreachableSecs float64
    
    	// Last whole minute stats
    	TotalRequests, FailedRequests int64
    	AvgSuccRTTMs                  float64
    	MaxSuccRTTMs                  float64
    }
    
    // Metrics reports metrics related to plugin service reachability and stats for the last whole minute
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.3K bytes
    - Viewed (3)
  10. internal/s3select/sql/funceval.go

    	}
    }
    
    func floatCast(v *Value) (float64, error) {
    	switch x := v.value.(type) {
    	case float64:
    		return x, nil
    	case int64:
    		return float64(x), nil
    	case string:
    		f, err := strconv.ParseFloat(strings.TrimSpace(x), 64)
    		if err != nil {
    			return 0, errCastFailure("could not parse as float")
    		}
    		return f, nil
    	case []byte:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
Back to top