Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CompletedSize (0.15 sec)

  1. cmd/bucket-replication-utils_test.go

    	},
    }
    
    func TestReplicatedInfos(t *testing.T) {
    	for i, test := range replicatedInfosTests {
    		rinfos := replicatedInfos{
    			Targets: test.tgtInfos,
    		}
    		if actualSize := rinfos.CompletedSize(); actualSize != test.expectedCompletedSize {
    			t.Errorf("Test%d (%s): Size  got %d , want %d", i+1, test.name, actualSize, test.expectedCompletedSize)
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. cmd/bucket-replication-utils.go

    func (rt replicatedTargetInfo) Empty() bool {
    	return rt.Arn == ""
    }
    
    type replicatedInfos struct {
    	ReplicationTimeStamp time.Time
    	Targets              []replicatedTargetInfo
    }
    
    func (ri replicatedInfos) CompletedSize() (sz int64) {
    	for _, t := range ri.Targets {
    		if t.Empty() {
    			continue
    		}
    		if t.ReplicationStatus == replication.Completed && t.PrevReplicationStatus != replication.Completed {
    			sz += t.Size
    		}
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 26K bytes
    - Viewed (0)
Back to top