- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for setCycle (0.11 sec)
-
cmd/data-scanner-metric.go
return AccElem{} } val := p.actionsLatency[a].total() return val } // setCycle updates the current cycle metrics. func (p *scannerMetrics) setCycle(c *currentScannerCycle) { if c != nil { c2 := c.clone() c = &c2 } p.cycleInfoMu.Lock() p.cycleInfo = c p.cycleInfoMu.Unlock() } // getCycle returns the current cycle metrics. // If not nil, the returned value can safely be modified.Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Oct 01 06:06:01 UTC 2025 - 9.4K bytes - Viewed (0) -
cmd/data-scanner.go
buf = buf[8:] _, err := cycleInfo.UnmarshalMsg(buf) bugLogIf(ctx, err) } scannerTimer := time.NewTimer(scannerCycle.Load()) defer scannerTimer.Stop() defer globalScannerMetrics.setCycle(nil) for { select { case <-ctx.Done(): return case <-scannerTimer.C: // Reset the timer for next cycle. // If scanner takes longer we start at once.
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 45.5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/GraphTest.java
addEdge(graph2, "a", "b"); addEdge(graph2, "b", "c"); CycleDetectedException cde = assertThrows(CycleDetectedException.class, () -> addEdge(graph2, "c", "a")); List<String> cycle = cde.getCycle(); assertNotNull(cycle, "Cycle should be not null"); assertTrue(cycle.contains("a"), "Cycle contains 'a'"); assertTrue(cycle.contains("b"), "Cycle contains 'b'");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 8.5K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java
private final List<String> cycle; CycleDetectedException(String message, List<String> cycle) { super(message); this.cycle = cycle; } public List<String> getCycle() { return cycle; } @Override public String getMessage() { return super.getMessage() + " " + String.join(" --> ", cycle); } }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 25 08:27:34 UTC 2025 - 3.4K bytes - Viewed (0)