Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for elapsed (0.15 sec)

  1. cmd/rebalance-admin.go

    		totalBytesToRebal := float64(ps.InitCapacity)*meta.PercentFreeGoal - float64(ps.InitFreeSpace)
    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    		if !stopTime.IsZero() { // rebalance is stopped or completed
    			elapsed = stopTime.Sub(ps.Info.StartTime)
    			eta = 0
    		}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. cmd/admin-handlers_test.go

    		// printEntries(exp)
    		// printEntries(got)
    		for i, e := range exp {
    			if !e.Timestamp.Equal(got[i].Timestamp) {
    				return i, false
    			}
    			// Skip checking elapsed since it's time sensitive.
    			// if e.Elapsed != got[i].Elapsed {
    			// 	return false
    			// }
    			if e.Resource != got[i].Resource {
    				return i, false
    			}
    			if e.Type != got[i].Type {
    				return i, false
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 13.9K bytes
    - Viewed (1)
  3. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         */
        public boolean isExpired() {
            if (type == HandleType.PERSISTENT) {
                return false; // Persistent handles don't expire
            }
            long elapsed = System.currentTimeMillis() - lastAccessTime;
            return elapsed > timeout;
        }
    
        /**
         * Update the last access time
         */
        public void updateAccessTime() {
            this.lastAccessTime = System.currentTimeMillis();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbOperationException.java

        public long getNtStatus() {
            return ntStatus;
        }
    
        public String getServerMessage() {
            return serverMessage;
        }
    
        /**
         * Get elapsed time since operation started
         *
         * @return elapsed time in milliseconds
         */
        public long getElapsedTime() {
            return System.currentTimeMillis() - operationStartTime;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbOperationExceptionTest.java

            assertFalse(exception.isAuthenticationError());
            assertFalse(exception.isFileSystemError());
            assertTrue(exception.isTransientError());
        }
    
        @Test
        @DisplayName("Should track elapsed time")
        void testElapsedTime() throws InterruptedException {
            // Given
            exception = new SmbOperationException(SmbOperationException.ErrorCode.BUSY, "Server busy");
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

            return totalReceiveTime.get() / (double) receives / 1000.0; // Convert to microseconds
        }
    
        /**
         * Calculate total throughput in MB/s based on total time
         *
         * @param totalTimeSeconds total elapsed time in seconds
         * @return throughput in MB/s
         */
        public double getThroughputMBps(double totalTimeSeconds) {
            if (totalTimeSeconds <= 0.0) {
                return 0.0;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. cmd/utils.go

    		}
    		stop := fgprof.Start(f, fgprof.FormatPprof)
    		startedAt := time.Now()
    		prof.stopFn = func() ([]byte, error) {
    			if elapsed := time.Since(startedAt); elapsed < 100*time.Millisecond {
    				// Light hack around https://github.com/felixge/fgprof/pull/34
    				time.Sleep(100*time.Millisecond - elapsed)
    			}
    			err := stop()
    			if err != nil {
    				return nil, err
    			}
    			err = f.Close()
    			if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  8. cmd/admin-heal-ops.go

    	}
    }
    
    func (ahs *allHealState) periodicHealSeqsClean(ctx context.Context) {
    	// Launch clean-up routine to remove this heal sequence (after
    	// it ends) from the global state after timeout has elapsed.
    	periodicTimer := time.NewTimer(time.Minute * 5)
    	defer periodicTimer.Stop()
    
    	for {
    		select {
    		case <-periodicTimer.C:
    			now := UTCNow()
    			ahs.Lock()
    			for path, h := range ahs.healSeqMap {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    		Name:      lastActivityTime,
    		Help:      "Time elapsed (in nano seconds) since last scan activity",
    		Type:      gaugeMetric,
    	}
    }
    
    func getBucketUsageLastScanActivityMD() MetricDescription {
    	return MetricDescription{
    		Namespace: bucketMetricNamespace,
    		Subsystem: usageSubsystem,
    		Name:      lastActivityTime,
    		Help:      "Time elapsed (in nano seconds) since last scan activity",
    		Type:      gaugeMetric,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 133.4K bytes
    - Viewed (0)
  10. cmd/batch-handlers.go

    			listResult.Jobs = append(listResult.Jobs, madmin.BatchJobResult{
    				ID:      req.ID,
    				Type:    req.Type(),
    				Started: req.Started,
    				User:    req.User,
    				Elapsed: time.Since(req.Started),
    			})
    		}
    	}
    
    	batchLogIf(ctx, json.NewEncoder(w).Encode(&listResult))
    }
    
    // BatchJobStatus - returns the status of a batch job saved in the disk
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.5K bytes
    - Viewed (0)
Back to top