Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 724 for uniq (0.03 seconds)

  1. internal/disk/fdatasync_linux.go

    func Fdatasync(f *os.File) error {
    	return syscall.Fdatasync(int(f.Fd()))
    }
    
    // FadviseDontNeed invalidates page-cache
    func FadviseDontNeed(f *os.File) error {
    	return unix.Fadvise(int(f.Fd()), 0, 0, unix.FADV_DONTNEED)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.8K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/InterruptionUtil.java

      static void requestInterruptIn(long time, TimeUnit unit) {
        checkNotNull(unit);
        Thread interruptee = Thread.currentThread();
        new Thread(
                new Runnable() {
                  @Override
                  public void run() {
                    try {
                      unit.sleep(time);
                    } catch (InterruptedException wontHappen) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  3. guava/src/com/google/common/base/Stopwatch.java

      @Override
      public String toString() {
        long nanos = elapsedNanos();
    
        TimeUnit unit = chooseUnit(nanos);
        double value = (double) nanos / NANOSECONDS.convert(1, unit);
    
        // Too bad this functionality is not exposed as a regular method call
        return Platform.formatCompact4Digits(value) + " " + abbreviate(unit);
      }
    
      private static TimeUnit chooseUnit(long nanos) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 08 18:55:33 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

      public final void awaitRunning(long timeout, TimeUnit unit) throws TimeoutException {
        delegate.awaitRunning(timeout, unit);
      }
    
      /**
       * @since 15.0
       */
      @Override
      public final void awaitTerminated() {
        delegate.awaitTerminated();
      }
    
      /**
       * @since 15.0
       */
      @Override
      public final void awaitTerminated(long timeout, TimeUnit unit) throws TimeoutException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt

        }
      }
    
      fun exhaustResponse() =
        apply {
          actions += { stream -> stream.sink.close() }
        }
    
      fun sleep(
        duration: Long,
        unit: TimeUnit,
      ) = apply {
        actions += { Thread.sleep(unit.toMillis(duration)) }
      }
    
      override fun handle(socket: Socket) {
        val task = serviceSocketTask(socket.asBufferedSocket())
        results.add(task)
        task.run()
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  6. cmd/admin-server-info.go

    	}
    	if len(gcStats.Pause) > 5 {
    		gcStats.Pause = gcStats.Pause[len(gcStats.Pause)-5:]
    	}
    
    	props := madmin.ServerProperties{
    		Endpoint: addr,
    		Uptime:   UTCNow().Unix() - globalBootTime.Unix(),
    		Version:  Version,
    		CommitID: CommitID,
    		Network:  network,
    		MemStats: madmin.MemStats{
    			Alloc:      memstats.Alloc,
    			TotalAlloc: memstats.TotalAlloc,
    			Mallocs:    memstats.Mallocs,
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri May 24 23:05:23 GMT 2024
    - 4.9K bytes
    - Click Count (1)
  7. utils/utils_unix_test.go

    //go:build unix
    // +build unix
    
    package utils
    
    import (
    	"testing"
    )
    
    func TestSourceDir(t *testing.T) {
    	cases := []struct {
    		file string
    		want string
    	}{
    		{
    			file: "/Users/name/go/pkg/mod/gorm.io/gorm@v1.2.3/utils/utils.go",
    			want: "/Users/name/go/pkg/mod/gorm.io/",
    		},
    		{
    			file: "/go/work/proj/gorm/utils/utils.go",
    			want: "/go/work/proj/gorm/",
    		},
    		{
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Nov 21 02:48:13 GMT 2022
    - 731 bytes
    - Click Count (0)
  8. cmd/bucket-replication-stats.go

    }
    
    func (r *ReplicationStats) getSRMetricsForNode() SRMetricsSummary {
    	if r == nil {
    		return SRMetricsSummary{}
    	}
    
    	m := SRMetricsSummary{
    		Uptime:        UTCNow().Unix() - globalBootTime.Unix(),
    		Queued:        r.qCache.getSiteStats(),
    		ActiveWorkers: r.ActiveWorkers(),
    		Metrics:       r.srStats.get(),
    		Proxied:       r.pCache.getSiteStats(),
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/base/OptionalTest.java

      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_t_present() {
        assertEquals("a", Optional.of("a").or("default"));
      }
    
      public void testOr_t_absent() {
        assertEquals("default", Optional.absent().or("default"));
      }
    
      @SuppressWarnings("OptionalOfRedundantMethod") // Unit tests for Optional
      public void testOr_supplier_present() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/ForwardingBlockingQueue.java

      @Override
      public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().offer(e, timeout, unit);
      }
    
      @CanIgnoreReturnValue // TODO(kak): consider removing this
      @Override
      public @Nullable E poll(long timeout, TimeUnit unit) throws InterruptedException {
        return delegate().poll(timeout, unit);
      }
    
      @Override
      public void put(E e) throws InterruptedException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3K bytes
    - Click Count (0)
Back to Top