Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 1,446 for time (0.03 sec)

  1. internal/grid/connection.go

    	var wsw wsWriter
    	var lastSetDeadline time.Time
    
    	// Helper to write everything in buf.
    	// Return false if an error occurred and the connection is unusable.
    	// Buffer will be reset empty when returning successfully.
    	writeBuffer := func() (ok bool) {
    		now := time.Now()
    		// Only set write deadline once every second
    		if now.Sub(lastSetDeadline) > time.Second {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  2. cmd/ftp-server-driver.go

    	return m.info.Size
    }
    
    func (m *minioFileInfo) Mode() os.FileMode {
    	if m.isDir {
    		return os.ModeDir
    	}
    	return os.ModePerm
    }
    
    var minFileDate = time.Date(1980, 1, 1, 0, 0, 0, 0, time.UTC) // Workaround for Filezilla
    
    func (m *minioFileInfo) ModTime() time.Time {
    	if !m.info.LastModified.IsZero() {
    		return m.info.LastModified
    	}
    	return minFileDate
    }
    
    func (m *minioFileInfo) IsDir() bool {
    	return m.isDir
    }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-utils_test.go

    		},
    		MarkDeleted:      false,
    		NumVersions:      1,
    		SuccessorModTime: time.Time{},
    	}
    	xl := xlMetaV2{}
    	var versions []FileInfo
    	var allVersionIDs, freeVersionIDs []string
    	for i := 0; i < 5; i++ {
    		fi := basefi
    		fi.VersionID = mustGetUUID()
    		fi.DataDir = mustGetUUID()
    		fi.ModTime = basefi.ModTime.Add(time.Duration(i) * time.Second)
    		if err := xl.AddVersion(fi); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. cmd/data-scanner.go

    		d.mu.RUnlock()
    		// Don't sleep for really small amount of time
    		wantSleep := time.Duration(float64(base) * factor)
    		if wantSleep <= minWait {
    			return
    		}
    		if maxWait > 0 && wantSleep > maxWait {
    			wantSleep = maxWait
    		}
    		timer := time.NewTimer(wantSleep)
    		select {
    		case <-ctx.Done():
    			if !timer.Stop() {
    				<-timer.C
    				if d.isScanner {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  5. cni/pkg/install/install_test.go

    				t.Fatal(err)
    			}
    
    			// Listen for isReady to be set to true
    			ticker := time.NewTicker(500 * time.Millisecond)
    			defer ticker.Stop()
    			readyChan := make(chan bool)
    			go func(ctx context.Context, tick <-chan time.Time) {
    				for {
    					select {
    					case <-ctx.Done():
    						return
    					case <-tick:
    						if isReady.Load().(bool) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java

        }
    
    
        /**
         * @param time
         * @return
         */
        private long convertTime ( long time ) {
            return time + this.serverTimeZoneOffset;
        }
    
    
        @Override
        public long getLastWriteTime () {
            return convertTime(this.lastWriteTime);
        }
    
    
        @Override
        public long getLastAccessTime () {
            // Fake access time
            return convertTime(this.lastWriteTime);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.4K bytes
    - Viewed (0)
  7. cmd/signals.go

    	"context"
    	"errors"
    	"net/http"
    	"os"
    	"strings"
    	"time"
    
    	"github.com/coreos/go-systemd/v22/daemon"
    	"github.com/minio/minio/internal/logger"
    )
    
    func shutdownHealMRFWithTimeout() {
    	const shutdownTimeout = time.Minute
    
    	finished := make(chan struct{})
    	go func() {
    		globalMRFState.shutdown()
    		close(finished)
    	}()
    	select {
    	case <-time.After(shutdownTimeout):
    	case <-finished:
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 04 17:02:39 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/log/exbhv/FavoriteLogBhv.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.es.log.exbhv;
    
    import java.time.Instant;
    import java.time.LocalDateTime;
    import java.time.ZoneId;
    import java.time.format.DateTimeFormatter;
    import java.time.format.DateTimeParseException;
    import java.util.regex.Pattern;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/es/log/exbhv/UserInfoBhv.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.es.log.exbhv;
    
    import java.time.Instant;
    import java.time.LocalDateTime;
    import java.time.ZoneId;
    import java.time.format.DateTimeFormatter;
    import java.time.format.DateTimeParseException;
    import java.util.regex.Pattern;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. internal/logger/target/http/http.go

    			if h.batchSize > 1 && time.Since(lastBatchProcess) < time.Second {
    				continue
    			}
    		}
    
    		// if we have reached the count send at once
    		// or we have crossed last second before batch was sent, send at once
    		lastBatchProcess = time.Now()
    
    		var retries int
    		retryIntvl := h.config.RetryIntvl
    		if retryIntvl <= 0 {
    			retryIntvl = 3 * time.Second
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top