- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for sortIPs (0.11 sec)
-
cmd/net.go
} return ipList, err } // sortIPs - sort ips based on higher octets. // The logic to sort by last octet is implemented to // prefer CIDRs with higher octets, this in-turn skips the // localhost/loopback address to be not preferred as the // first ip on the list. Subsequently this list helps us print // a user friendly message with appropriate values. func sortIPs(ipList []string) []string { if len(ipList) == 1 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 19 14:34:00 UTC 2024 - 9.6K bytes - Viewed (0) -
cmd/net_test.go
{ ipList: []string{"127.0.0.1", "10.0.0.1", "192.168.0.1"}, sortedIPList: []string{"10.0.0.1", "192.168.0.1", "127.0.0.1"}, }, } for i, testCase := range testCases { gotIPList := sortIPs(testCase.ipList) if !reflect.DeepEqual(testCase.sortedIPList, gotIPList) { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.sortedIPList, gotIPList) } } } func TestMustGetLocalIP4(t *testing.T) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Apr 19 08:43:09 UTC 2024 - 9.3K bytes - Viewed (0) -
cmd/endpoint.go
u := &url.URL{ Scheme: endpoint.Scheme, Host: endpoint.Host, } return u.String() } } } host := globalMinioHost if host == "" { host = sortIPs(localIP4.ToSlice())[0] } return fmt.Sprintf("%s://%s", getURLScheme(globalIsTLS), net.JoinHostPort(host, globalMinioPort)) } // LocalDisksPaths returns the disk paths of the local disks
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 21 22:22:24 UTC 2024 - 34.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSortedSetGenerator.java
@GwtCompatible @ElementTypesAreNonnullByDefault public abstract class TestIntegerSortedSetGenerator extends TestIntegerSetGenerator { @Override protected abstract SortedSet<Integer> create(Integer[] elements); /** Sorts the elements by their natural ordering. */ @Override public List<Integer> order(List<Integer> insertionOrder) { sort(insertionOrder); return insertionOrder; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 1.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
return "UnsignedLongs.lexicographicalComparator()"; } } /** * Sorts the array, treating its elements as unsigned 64-bit integers. * * @since 23.1 */ public static void sort(long[] array) { checkNotNull(array); sort(array, 0, array.length); } /** * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Aug 12 21:04:48 UTC 2024 - 17.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedInts.java
return "UnsignedInts.lexicographicalComparator()"; } } /** * Sorts the array, treating its elements as unsigned 32-bit integers. * * @since 23.1 */ public static void sort(int[] array) { checkNotNull(array); sort(array, 0, array.length); } /** * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 21:17:54 UTC 2024 - 13.7K bytes - Viewed (0) -
guava/src/com/google/common/primitives/UnsignedInts.java
return "UnsignedInts.lexicographicalComparator()"; } } /** * Sorts the array, treating its elements as unsigned 32-bit integers. * * @since 23.1 */ public static void sort(int[] array) { checkNotNull(array); sort(array, 0, array.length); } /** * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 21:17:54 UTC 2024 - 13.7K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/common/help.jsp
<pre>title:Fess</pre> The available fields are "url", "host", "site", "title", "content", "content_length", "last_modified" and "mimetype", and they are customizable. </dd> <dt>Sort</dt> <dd> sort field sorts documents by a specified field name. The format is "sort:<field>.<order>", where <order> is asc or desc. If you want to find documents which has "Fess" and sort them in descending order, you can enter:
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Feb 26 14:01:31 UTC 2018 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java
@Override public SortedSet<String> create(Object... elements) { return (SortedSet<String>) super.create(elements); } @Override protected abstract SortedSet<String> create(String[] elements); /** Sorts the elements by their natural ordering. */ @Override public List<String> order(List<String> insertionOrder) { sort(insertionOrder); return insertionOrder; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 1.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java
} return create(array); } protected abstract Set<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ @Override public List<AnEnum> order(List<AnEnum> insertionOrder) { sort(insertionOrder); return insertionOrder; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 1.7K bytes - Viewed (0)