Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for ABS (0.05 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/ChannelLoadBalancer.java

            }
        }
    
        private ChannelInfo selectRoundRobin(Collection<ChannelInfo> channels) {
            List<ChannelInfo> list = new ArrayList<>(channels);
            int index = Math.abs(roundRobinCounter.getAndIncrement() % list.size());
            return list.get(index);
        }
    
        private ChannelInfo selectLeastLoaded(Collection<ChannelInfo> channels) {
            ChannelInfo leastLoadedChannel = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        // decrement until it's <= the true value
        while (StrictMath.pow(2.0, trueLog2) > d) {
          trueLog2 = StrictMath.nextAfter(trueLog2, Double.NEGATIVE_INFINITY);
        }
        if (StrictMath.abs(StrictMath.pow(2.0, trueLog2) - d)
            > StrictMath.abs(StrictMath.pow(2.0, StrictMath.nextUp(trueLog2)) - d)) {
          trueLog2 = StrictMath.nextUp(trueLog2);
        }
        return trueLog2;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/math/LongMath.java

            break;
          case HALF_EVEN:
          case HALF_DOWN:
          case HALF_UP:
            long absRem = abs(rem);
            long cmpRemToHalfDivisor = absRem - (abs(q) - absRem);
            // subtracting two nonnegative longs can't overflow
            // cmpRemToHalfDivisor has the same sign as compare(abs(rem), abs(q) / 2).
            if (cmpRemToHalfDivisor == 0) { // exactly on the half mark
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            final long now = System.currentTimeMillis();
            assertTrue(Math.abs(currentTime.getTime() - now) < 1000);
        }
    
        public void test_getCurrentTimeAsLong() {
            final long currentTime = systemHelper.getCurrentTimeAsLong();
            final long now = System.currentTimeMillis();
            assertTrue(Math.abs(currentTime - now) < 1000);
        }
    
        public void test_destroy() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.9K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/CrawlingInfoHelperTest.java

                long diff1 = result1 - result0;
                long diff7 = result7 - result0;
                assertTrue("1 day should be approximately ONE_DAY_IN_MILLIS", Math.abs(diff1 - Constants.ONE_DAY_IN_MILLIS) < 10000);
                assertTrue("7 days should be approximately 7 * ONE_DAY_IN_MILLIS", Math.abs(diff7 - 7 * Constants.ONE_DAY_IN_MILLIS) < 10000);
            } catch (Exception e) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  6. cmd/endpoint_test.go

    	"reflect"
    	"strings"
    	"testing"
    )
    
    func TestNewEndpoint(t *testing.T) {
    	u2, _ := url.Parse("https://example.org/path")
    	u4, _ := url.Parse("http://192.168.253.200/path")
    	rootSlashFoo, _ := filepath.Abs("/foo")
    	testCases := []struct {
    		arg              string
    		expectedEndpoint Endpoint
    		expectedType     EndpointType
    		expectedErr      error
    	}{
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            ServerMessageBlock.writeTime(time, buffer, 0);
            long readTime = ServerMessageBlock.readTime(buffer, 0);
            // Precision may be lost, so check within a second
            assertTrue(Math.abs(time - readTime) < 1000);
        }
    
        @Test
        void testTimeReadWriteZero() {
            byte[] buffer = new byte[8];
            ServerMessageBlock.writeTime(0, buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. cmd/bucket-object-lock.go

    	}
    
    	// Pass in relative days from current time, to additionally
    	// to verify "object-lock-remaining-retention-days" policy if any.
    	days := int(math.Ceil(math.Abs(objRetention.RetainUntilDate.Sub(t).Hours()) / 24))
    
    	ret := objectlock.GetObjectRetentionMeta(oi.UserDefined)
    	if ret.Mode.Valid() {
    		// Retention has expired you may change whatever you like.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:38:25 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            assertTrue(currentTime > 0);
    
            long currentTimeMillis = System.currentTimeMillis();
            // Allow for small time difference
            assertTrue(Math.abs(currentTime - currentTimeMillis) < 1000);
        }
    
        public void test_constants() {
            assertEquals("userRoles", RoleQueryHelper.USER_ROLES);
        }
    
        public void test_defaultValues() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 28.5K bytes
    - Viewed (0)
  10. cmd/update.go

    }
    
    // getModTime - get the file modification time of `path`
    func getModTime(path string) (t time.Time, err error) {
    	// Convert to absolute path
    	absPath, err := filepath.Abs(path)
    	if err != nil {
    		return t, fmt.Errorf("Unable to get absolute path of %s. %w", path, err)
    	}
    
    	// Version is minio non-standard, we will use minio binary's
    	// ModTime as release time.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 18.9K bytes
    - Viewed (0)
Back to top