Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for oldSize (0.49 sec)

  1. pkg/volume/flexvolume/expander.go

    	call := plugin.NewDriverCall(expandVolumeCmd)
    	call.AppendSpec(spec, plugin.host, nil)
    
    	devicePath, err := plugin.getDeviceMountPath(spec)
    	if err != nil {
    		return newSize, err
    	}
    	call.Append(devicePath)
    	call.Append(strconv.FormatInt(newSize.Value(), 10))
    	call.Append(strconv.FormatInt(oldSize.Value(), 10))
    
    	_, err = call.Run()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 14:21:44 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        assertEquals(map.size(), oldSize - 1);
        assertFalse(map.containsKey(key));
        assertEquals(subMap.size(), oldSize - 2);
      }
    
      public void testTailMapClearThrough() {
        SortedMap<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        int oldSize = map.size();
        if (map.size() < 2 || !supportsClear) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/SortedMapInterfaceTest.java

        assertEquals(map.size(), oldSize - 1);
        assertFalse(map.containsKey(key));
        assertEquals(subMap.size(), oldSize - 2);
      }
    
      public void testTailMapClearThrough() {
        SortedMap<K, V> map;
        try {
          map = makePopulatedMap();
        } catch (UnsupportedOperationException e) {
          return;
        }
        int oldSize = map.size();
        if (map.size() < 2 || !supportsClear) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go

    		}
    		if _, loaded := record.LoadOrStore(size, nil); loaded {
    			t.Errorf("detected duplicated cache size metric for %d", size)
    		}
    		newSize := uint64(size)
    		oldSize := cacheSize.Swap(newSize)
    		if oldSize > newSize {
    			t.Errorf("cache size decreased from %d to %d", oldSize, newSize)
    		}
    	}
    	transformer := &envelopeTransformer{}
    
    	want := sets.NewInt()
    	startCh := make(chan struct{})
    	wg := sync.WaitGroup{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 31 20:26:58 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          if (collection.isEmpty()) {
            return false;
          }
          int oldSize = size(); // calls refreshIfEmpty
          boolean changed = delegate.addAll(collection);
          if (changed) {
            int newSize = delegate.size();
            totalSize += (newSize - oldSize);
            if (oldSize == 0) {
              addToMap();
            }
          }
          return changed;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 48K bytes
    - Viewed (0)
  6. pkg/volume/flexvolume/expander-defaults.go

    	return &expanderDefaults{plugin}
    }
    
    func (e *expanderDefaults) ExpandVolumeDevice(spec *volume.Spec, newSize resource.Quantity, oldSize resource.Quantity) (resource.Quantity, error) {
    	klog.Warning(logPrefix(e.plugin), "using default expand for volume ", spec.Name(), ", to size ", newSize, " from ", oldSize)
    	return newSize, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 16 11:54:27 UTC 2020
    - 2K bytes
    - Viewed (0)
  7. plugin/pkg/admission/storage/persistentvolume/resize/admission.go

    	if !ok {
    		return nil
    	}
    	oldPvc, ok := a.GetOldObject().(*api.PersistentVolumeClaim)
    	if !ok {
    		return nil
    	}
    
    	oldSize := oldPvc.Spec.Resources.Requests[api.ResourceStorage]
    	newSize := pvc.Spec.Resources.Requests[api.ResourceStorage]
    
    	if newSize.Cmp(oldSize) <= 0 {
    		return nil
    	}
    
    	if oldPvc.Status.Phase != api.ClaimBound {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

          if (collection.isEmpty()) {
            return false;
          }
          int oldSize = size(); // calls refreshIfEmpty
          boolean changed = delegate.addAll(collection);
          if (changed) {
            int newSize = delegate.size();
            totalSize += (newSize - oldSize);
            if (oldSize == 0) {
              addToMap();
            }
          }
          return changed;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapAsMapGetTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, SUPPORTS_PUT})
      public void testPropagatesRemoveThenAddToMultimap() {
        int oldSize = getNumElements();
    
        Collection<V> result = multimap().asMap().get(k0());
        assertTrue(result.remove(v0()));
    
        assertFalse(multimap().containsKey(k0()));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

      }
    
      @CollectionSize.Require(absent = ZERO)
      @MapFeature.Require({SUPPORTS_REMOVE, SUPPORTS_PUT})
      public void testPropagatesRemoveLastThenAddToMultimap() {
        int oldSize = getNumElements();
    
        Collection<V> result = multimap().get(k0());
        assertTrue(result.remove(v0()));
    
        assertFalse(multimap().containsKey(k0()));
        assertFalse(multimap().containsEntry(k0(), v0()));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Nov 16 17:41:24 UTC 2022
    - 5.6K bytes
    - Viewed (0)
Back to top