Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 404 for Decrement (0.42 sec)

  1. plugin/pkg/auth/authorizer/node/intset_test.go

    	assert.False(t, i.has(4)) // not yet present
    
    	i.decrement(2) // to 0
    	i.increment(3) // to 2
    	i.decrement(3) // to 1
    	i.increment(4) // to 1
    
    	assert.False(t, i.has(1))
    	assert.False(t, i.has(2))
    	assert.True(t, i.has(3))
    	assert.True(t, i.has(4))
    
    	i.reset()
    	assert.False(t, i.has(1))
    	assert.False(t, i.has(2))
    	assert.False(t, i.has(3))
    	assert.False(t, i.has(4))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 10 18:24:13 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/NonHierarchicalFileWatcherUpdater.java

                .forEach(snapshot -> {
                    String previousWatchedRoot = watchedDirectoryForSnapshot.remove(snapshot.getAbsolutePath());
                    decrement(previousWatchedRoot, changedWatchedDirectories);
                    snapshot.accept(new SubdirectoriesToWatchVisitor(path -> decrement(path, changedWatchedDirectories)));
                });
            addedSnapshots.stream()
                .filter(watchableHierarchies::shouldWatch)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 17 04:59:05 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. plugin/pkg/auth/authorizer/node/intset.go

    		delete(s.members, k)
    	}
    }
    
    // increment adds one to the refcount of the specified id.
    // it is not thread-safe.
    func (s *intSet) increment(i int) {
    	s.members[i]++
    }
    
    // decrement removes one from the refcount of the specified id,
    // and removes the id if the resulting refcount is <= 0.
    // it will not track refcounts lower than zero.
    // it is not thread-safe.
    func (s *intSet) decrement(i int) {
    	if s.members[i] <= 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 10 18:24:13 UTC 2020
    - 1.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/gnu.go

    		//
    		//0000z -> decrement ctr, b if ctr != 0 and CRbi == 0
    		//0001z -> decrement ctr, b if ctr == 0 and CRbi == 0
    		//001at -> b if CRbi == 0
    		//0100z -> decrement ctr, b if ctr != 0 and CRbi == 1
    		//0101z -> decrement ctr, b if ctr == 0 and CRbi == 1
    		//011at -> b if CRbi == 1
    		//1a00t -> decrement ctr, b if ctr != 0
    		//1a01t -> decrement ctr, b if ctr == 0
    		//1z1zz -> b always
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        address = InetAddresses.decrement(address);
    
        assertEquals(address66255, address);
    
        for (int i = 0; i < 255; i++) {
          address = InetAddresses.decrement(address);
        }
        assertEquals(address660, address);
    
        InetAddress address0000 = InetAddress.getByName("0.0.0.0");
        assertThrows(IllegalArgumentException.class, () -> InetAddresses.decrement(address0000));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/internal/obj/ppc64/a.out.go

    	BI_FU  = 3
    )
    
    // Common values for the BO field.
    
    const (
    	BO_ALWAYS  = 20 // branch unconditionally
    	BO_BCTR    = 16 // decrement ctr, branch on ctr != 0
    	BO_NOTBCTR = 18 // decrement ctr, branch on ctr == 0
    	BO_BCR     = 12 // branch on cr value
    	BO_BCRBCTR = 8  // decrement ctr, branch on ctr != 0 and cr value
    	BO_NOTBCR  = 4  // branch on not cr value
    )
    
    // Bit settings from the CR
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 18:50:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. 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)
Back to top