Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for Decrement (0.19 sec)

  1. pkg/monitoring/disabled.go

    // limitations under the License.
    
    package monitoring
    
    type disabledMetric struct {
    	name string
    }
    
    // Decrement implements Metric
    func (dm *disabledMetric) Decrement() {}
    
    // Increment implements Metric
    func (dm *disabledMetric) Increment() {}
    
    // Name implements Metric
    func (dm *disabledMetric) Name() string {
    	return dm.name
    }
    
    // Record implements Metric
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. cmd/erasure-utils.go

    		return 0, reedsolomon.ErrShortData
    	}
    
    	// Counter to decrement total left to write.
    	write := length
    
    	// Counter to increment total written.
    	var totalWritten int64
    
    	// Write all data blocks to dst.
    	for _, block := range enBlocks[:dataBlocks] {
    		// Skip blocks until we have reached our offset.
    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. pkg/monitoring/base.go

    	// attrs stores all attrs for the metrics
    	attrs []attribute.KeyValue
    	rest  Metric
    }
    
    func (f baseMetric) Name() string {
    	return f.name
    }
    
    func (f baseMetric) Increment() {
    	f.rest.Record(1)
    }
    
    func (f baseMetric) Decrement() {
    	f.rest.Record(-1)
    }
    
    func (f baseMetric) runRecordHook(value float64) {
    	recordHookMutex.RLock()
    	if rh, ok := recordHooks[f.name]; ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. src/sync/example_test.go

    	var urls = []string{
    		"http://www.golang.org/",
    		"http://www.google.com/",
    		"http://www.example.com/",
    	}
    	for _, url := range urls {
    		// Increment the WaitGroup counter.
    		wg.Add(1)
    		// Launch a goroutine to fetch the URL.
    		go func(url string) {
    			// Decrement the counter when the goroutine completes.
    			defer wg.Done()
    			// Fetch the URL.
    			http.Get(url)
    		}(url)
    	}
    	// Wait for all HTTP fetches to complete.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 17:45:47 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolution/KaCompoundAccess.kt

            public enum class Kind {
                PLUS_ASSIGN, MINUS_ASSIGN, TIMES_ASSIGN, DIV_ASSIGN, REM_ASSIGN
            }
    
        }
    
        /**
         * A compound access that read, increment or decrement, and write the computed value back.
         */
        public class IncOrDecOperation(
            operationPartiallyAppliedSymbol: KaPartiallyAppliedFunctionSymbol<KaFunctionSymbol>,
            kind: Kind,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 16:16:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/internal/fuzz/minimize.go

    		copy(candidate[i:], v[i+1:])
    		if !try(candidate) {
    			continue
    		}
    		// Update v to delete the value at index i.
    		copy(v[i:], v[i+1:])
    		v = v[:len(candidate)]
    		// v[i] is now different, so decrement i to redo this iteration
    		// of the loop with the new value.
    		i--
    	}
    
    	// Then, try to remove each possible subset of bytes.
    	for i := 0; i < len(v)-1; i++ {
    		copy(tmp, v[:i])
    		for j := len(v); j > i+1; j-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 07 21:15:51 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  7. pkg/monitoring/monitoring.go

    }
    
    // A Metric collects numerical observations.
    type Metric interface {
    	// Increment records a value of 1 for the current measure. For Sums,
    	// this is equivalent to adding 1 to the current value. For Gauges,
    	// this is equivalent to setting the value to 1. For Distributions,
    	// this is equivalent to making an observation of value 1.
    	Increment()
    
    	// Decrement records a value of -1 for the current measure. For Sums,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_libinit_windows.c

    	 if (!InterlockedExchangeAdd(&runtime_init_once_done, 0)) {
    			if (InterlockedIncrement(&runtime_init_once_gate) == 1) {
    				 _cgo_preinit_init();
    				 InterlockedIncrement(&runtime_init_once_done);
    			} else {
    				 // Decrement to avoid overflow.
    				 InterlockedDecrement(&runtime_init_once_gate);
    				 while(!InterlockedExchangeAdd(&runtime_init_once_done, 0)) {
    						Sleep(0);
    				 }
    			}
    	 }
    }
    
    void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

        abstract void compareAndSetSeenExceptions(
            AggregateFutureState<?> state, @CheckForNull Set<Throwable> expect, Set<Throwable> update);
    
        /** Atomic decrement-and-get of the {@link AggregateFutureState#remaining} field. */
        abstract int decrementAndGetRemainingCount(AggregateFutureState<?> state);
      }
    
      private static final class SafeAtomicHelper extends AtomicHelper {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 20:40:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultRedrawableLabelTest.groovy

            label.text = "text"
    
            when:
            redraw()
            redraw()
    
            then:
            1 * ansi.a('text')
            0 * ansi._
        }
    
        def "scrolling the label down will decrement the write position rows by #rows"() {
            given:
            int previousWriteRow = label.writePosition.row
    
            when:
            label.scrollDownBy(rows)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top