Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for NeedUpdate (0.16 sec)

  1. cmd/dependencyverifier/dependencyverifier.go

    		needUpdate = true
    	}
    	if len(addedVendored) > 0 {
    		log.Printf("Unwanted modules are newly vendored: %q", addedVendored)
    		log.Printf("!!! Avoid updates that increase vendoring of unwanted dependencies\n")
    		needUpdate = true
    	}
    
    	if needUpdate {
    		os.Exit(1)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 07 01:48:30 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modfetch/zip_sum_test/zip_sum_test.go

    					test.m.Path = "" // mark for deletion
    					needUpdate = true
    				} else {
    					t.Errorf("%s: could not download module: %s", test.m, err)
    				}
    				return
    			}
    
    			sum := modfetch.Sum(ctx, test.m)
    			if sum != test.wantSum {
    				if *updateTestData {
    					t.Logf("%s: updating content sum to %s", test.m, sum)
    					test.wantSum = sum
    					needUpdate = true
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 19:33:59 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. pkg/controller/bootstrap/bootstrapsigner.go

    		oldSig, _ := sigs[tokenID]
    		if sig != oldSig {
    			needUpdate = true
    		}
    		delete(sigs, tokenID)
    
    		newCM.Data[bootstrapapi.JWSSignatureKeyPrefix+tokenID] = sig
    	}
    
    	// If we have signatures left over we know that some signatures were
    	// removed.  We now need to update the ConfigMap
    	if len(sigs) != 0 {
    		needUpdate = true
    	}
    
    	if needUpdate {
    		e.updateConfigMap(ctx, newCM)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/runtime/mgclimit_test.go

    		}
    
    		// Test needUpdate.
    
    		if l.NeedUpdate(advance(GCCPULimiterUpdatePeriod / 2)) {
    			t.Fatal("need update even though updated half a period ago")
    		}
    		if !l.NeedUpdate(advance(GCCPULimiterUpdatePeriod)) {
    			t.Fatal("doesn't need update even though updated 1.5 periods ago")
    		}
    		l.Update(advance(0))
    		if l.NeedUpdate(advance(0)) {
    			t.Fatal("need update even though just updated")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 13 16:02:20 UTC 2022
    - 9K bytes
    - Viewed (0)
  5. pkg/kubelet/config/config.go

    				s.startupSLIObserver.ObservedPodOnWatch(ref, time.Now())
    			}
    			if existing, found := oldPods[ref.UID]; found {
    				pods[ref.UID] = existing
    				needUpdate, needReconcile, needGracefulDelete := checkAndUpdatePod(existing, ref)
    				if needUpdate {
    					updatePods = append(updatePods, existing)
    				} else if needReconcile {
    					reconcilePods = append(reconcilePods, existing)
    				} else if needGracefulDelete {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    	if err != nil {
    		return err
    	}
    	node := originalNode.DeepCopy()
    
    	needUpdate := false
    	for _, update := range updateFuncs {
    		newNode, updated, err := update(node)
    		if err != nil {
    			return err
    		}
    		node = newNode
    		needUpdate = needUpdate || updated
    	}
    
    	if needUpdate {
    		// PatchNodeStatus can update both node's status and labels or annotations
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. src/runtime/mgclimit.go

    // we can go before updating the limiter.
    const gcCPULimiterUpdatePeriod = 10e6 // 10ms
    
    // needUpdate returns true if the limiter's maximum update period has been
    // exceeded, and so would benefit from an update.
    func (l *gcCPULimiterState) needUpdate(now int64) bool {
    	return now-l.lastUpdate.Load() > gcCPULimiterUpdatePeriod
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. src/runtime/export_test.go

    func (l *GCCPULimiter) Overflow() uint64 {
    	return l.limiter.overflow
    }
    
    func (l *GCCPULimiter) Limiting() bool {
    	return l.limiter.limiting()
    }
    
    func (l *GCCPULimiter) NeedUpdate(now int64) bool {
    	return l.limiter.needUpdate(now)
    }
    
    func (l *GCCPULimiter) StartGCTransition(enableGC bool, now int64) {
    	l.limiter.startGCTransition(enableGC, now)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  9. src/runtime/mgcpacer.go

    	// case the limiter is on but hasn't been checked in a while and
    	// so may have left sufficient headroom to turn off again.
    	if now == 0 {
    		now = nanotime()
    	}
    	if gcCPULimiter.needUpdate(now) {
    		gcCPULimiter.update(now)
    	}
    
    	if !gcMarkWorkAvailable(pp) {
    		// No work to be done right now. This can happen at
    		// the end of the mark phase when there are still
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top