- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,665 for count1 (0.11 sec)
-
android/guava/src/com/google/common/io/CountingInputStream.java
public long getCount() { return count; } @Override public int read() throws IOException { int result = in.read(); if (result != -1) { count++; } return result; } @Override public int read(byte[] b, int off, int len) throws IOException { int result = in.read(b, off, len); if (result != -1) { count += result; } return result; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/io/CountingInputStream.java
public long getCount() { return count; } @Override public int read() throws IOException { int result = in.read(); if (result != -1) { count++; } return result; } @Override public int read(byte[] b, int off, int len) throws IOException { int result = in.read(b, off, len); if (result != -1) { count += result; } return result; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed May 17 14:35:11 UTC 2023 - 2.4K bytes - Viewed (0) -
tests/integration/telemetry/api/accesslogs_test.go
time.Sleep(time.Second * 2) count = logCount(t, to, testID) if count > 0 != expectLogs { return fmt.Errorf("expected logs '%v', got %v", expectLogs, count) } return nil }) } } func logCount(t test.Failer, to echo.Target, testID string) float64 { counts := map[string]float64{} for _, w := range to.WorkloadsOrFail(t) { var logs string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 22:02:59 UTC 2024 - 11.6K bytes - Viewed (0) -
guava/src/com/google/common/io/CountingOutputStream.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 2K bytes - Viewed (0) -
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) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting_test.go
goGetAndExpect(t, clock, counter, wr, gots, aval) } func TestCountingWriteOnceCancel(t *testing.T) { oldTime := time.Now() cval := &oldTime clock, counter := testeventclock.NewFake(oldTime, 0, nil) ctx, cancel := context.WithCancel(context.Background()) var lock sync.Mutex wr := NewCountingWriteOnce(counter, &lock, nil, ctx.Done(), cval) gots := make(chan interface{}, 1) goGetExpectNotYet(t, clock, counter, wr, gots, "cancel")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 10 14:37:53 UTC 2021 - 4.6K bytes - Viewed (0) -
istioctl/pkg/injector/injector-list.go
} func renderCounts(injectedRevision string, counts revisionCount) string { if counts.pods == 0 { return "<no pods>" } podText := strconv.Itoa(counts.pods) if counts.disabled > 0 { podText += fmt.Sprintf(" (injection disabled: %d)", counts.disabled) } if counts.needsRestart > 0 { podText += fmt.Sprintf(" NEEDS RESTART: %d", counts.needsRestart) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 04 03:08:06 UTC 2024 - 10.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/metrics/testutil_test.go
} } if wantCount != counterSum { t.Errorf("Wanted count %d, got %d for metric %s with labels %#+v", wantCount, counterSum, name, labelFilter) for _, mf := range metrics { if mf.GetName() == name { for _, metric := range mf.GetMetric() { t.Logf("\tnear match: %s", metric.String()) } } } } } // expectCounterValue ensures that the counts of metrics matching the labelFilter is as // expected.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 24 04:26:43 UTC 2020 - 3.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CountingOutputStreamTest.java
counter.write(data, 0, 5); written += 5; assertEquals(written, out.size()); assertEquals(written, counter.getCount()); counter.write(data, 2, 5); written += 5; assertEquals(written, out.size()); assertEquals(written, counter.getCount()); // Test that illegal arguments do not affect count
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 1.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/metrics/metrics_test.go
# HELP etcd_requests_total [ALPHA] Etcd request counts for each operation and object type. # TYPE etcd_requests_total counter etcd_requests_total{operation="foo",type="bar"} 1 # HELP etcd_request_errors_total [ALPHA] Etcd failed request counts for each operation and object type. # TYPE etcd_request_errors_total counter etcd_request_errors_total{operation="foo",type="bar"} 1 `, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 11 21:15:32 UTC 2024 - 10.2K bytes - Viewed (0)