Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 547 for _counters (0.18 sec)

  1. cmd/erasure-encode.go

    	// return a quorum error to HealFile().
    	nilCount := countErrs(p.errs, nil)
    	if nilCount >= p.writeQuorum {
    		return nil
    	}
    
    	writeErr := reduceWriteQuorumErrs(ctx, p.errs, objectOpIgnoredErrs, p.writeQuorum)
    	return fmt.Errorf("%w (offline-disks=%d/%d)", writeErr, countErrs(p.errs, errDiskNotFound), len(p.writers))
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. pkg/util/iptables/testing/fake.go

    func (f *FakeIPTables) Restore(table iptables.Table, data []byte, flush iptables.FlushFlag, counters iptables.RestoreCountersFlag) error {
    	dump, err := ParseIPTablesDump(string(data))
    	if err != nil {
    		return err
    	}
    
    	newTable, err := dump.GetTable(table)
    	if err != nil {
    		return err
    	}
    
    	return f.restoreTable(dump, newTable, flush, counters)
    }
    
    // RestoreAll is part of iptables.Interface
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/cmd/cover/testdata/test.go

    	testGoto()
    }
    
    // The indexes of the counters in testPanic are known to main.go
    const panicIndex = 3
    
    // This test appears first because the index of its counters is known to main.go
    func testPanic() {
    	defer func() {
    		recover()
    	}()
    	check(LINE, 1)
    	panic("should not get next line")
    	check(LINE, 0) // this is GoCover.Count[panicIndex]
    	// The next counter is in testSimple and it will be non-zero.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  4. platforms/jvm/jacoco/src/main/java/org/gradle/internal/jacoco/rules/JacocoLimitImpl.java

    public class JacocoLimitImpl implements JacocoLimit {
    
        private String counter = "INSTRUCTION";
        private String value = "COVEREDRATIO";
        private BigDecimal minimum;
        private BigDecimal maximum;
    
        @Override
        public String getCounter() {
            return counter;
        }
    
        @Override
        public void setCounter(String counter) {
            this.counter = counter;
        }
    
        @Override
        public String getValue() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIsolationIntegrationTest.groovy

                        def counter = parameters.counter
                        println "Transforming \${input.name} to \${output.name}"
                        output.withWriter { out ->
                            out.println String.valueOf(counter.getCount())
                            for (int i = 0; i < 4; i++) {
                                out.println String.valueOf(counter.increment())
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  6. src/sync/waitgroup.go

    	noCopy noCopy
    
    	state atomic.Uint64 // high 32 bits are counter, low 32 bits are waiter count.
    	sema  uint32
    }
    
    // Add adds delta, which may be negative, to the [WaitGroup] counter.
    // If the counter becomes zero, all goroutines blocked on [WaitGroup.Wait] are released.
    // If the counter goes negative, Add panics.
    //
    // Note that calls with a positive delta that occur when the counter is zero
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    }
    
    // avoid parsing count files multiple times
    type parsedCache struct {
    	mu sync.Mutex
    	m  map[string]*counter.File
    }
    
    func (u *uploader) parseCountFile(fname string) (*counter.File, error) {
    	u.cache.mu.Lock()
    	defer u.cache.mu.Unlock()
    	if u.cache.m == nil {
    		u.cache.m = make(map[string]*counter.File)
    	}
    	if f, ok := u.cache.m[fname]; ok {
    		return f, nil
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/filters/metrics_test.go

    			},
    			status: true,
    			want: `
    				# HELP authenticated_user_requests [ALPHA] Counter of authenticated requests broken out by username.
    				# TYPE authenticated_user_requests counter
    				authenticated_user_requests{username="admin"} 1
            # HELP authentication_attempts [ALPHA] Counter of authenticated attempts.
            # TYPE authentication_attempts counter
            authentication_attempts{result="success"} 1
    				`,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 20 13:35:55 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  9. platforms/core-execution/build-cache/src/jmh/java/org/gradle/caching/internal/tasks/ChmodBenchmark.java

            this.tempDirFile = tempDirPath.toFile();
            this.counter = new AtomicInteger();
        }
    
        @TearDown(Level.Iteration)
        public void tearDownIteration() throws IOException {
            FileUtils.forceDelete(tempDirFile);
        }
    
        @Benchmark
        public void createFileJava6(Blackhole blackhole) throws IOException {
            File file = new File(tempDirFile, "file-" + counter.incrementAndGet());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 12:13:32 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/tutorial/dynamicDepends/kotlin/build.gradle.kts

    repeat(4) { counter ->
        tasks.register("task$counter") {
            doLast {
                println("I'm task number $counter")
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 196 bytes
    - Viewed (0)
Back to top