mirror of
				https://source.quilibrium.com/quilibrium/ceremonyclient.git
				synced 2025-11-04 04:47:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			66 lines
		
	
	
		
			830 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			830 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
rotate 100
 | 
						|
----
 | 
						|
last-snapshot-size: 100
 | 
						|
size-since-last-snapshot: 0
 | 
						|
 | 
						|
add 10
 | 
						|
----
 | 
						|
last-snapshot-size: 100
 | 
						|
size-since-last-snapshot: 10
 | 
						|
 | 
						|
# We should only rotate if the next snapshot is much smaller.
 | 
						|
should-rotate 100
 | 
						|
----
 | 
						|
false
 | 
						|
 | 
						|
should-rotate 5
 | 
						|
----
 | 
						|
true
 | 
						|
 | 
						|
add 50
 | 
						|
----
 | 
						|
last-snapshot-size: 100
 | 
						|
size-since-last-snapshot: 60
 | 
						|
 | 
						|
add 50
 | 
						|
----
 | 
						|
last-snapshot-size: 100
 | 
						|
size-since-last-snapshot: 110
 | 
						|
 | 
						|
add 50
 | 
						|
----
 | 
						|
last-snapshot-size: 100
 | 
						|
size-since-last-snapshot: 160
 | 
						|
 | 
						|
# We exceeded the last snapshot size, we should rotate regardless.
 | 
						|
should-rotate 1
 | 
						|
----
 | 
						|
true
 | 
						|
 | 
						|
should-rotate 1000
 | 
						|
----
 | 
						|
true
 | 
						|
 | 
						|
add 1
 | 
						|
----
 | 
						|
last-snapshot-size: 100
 | 
						|
size-since-last-snapshot: 161
 | 
						|
 | 
						|
rotate 10
 | 
						|
----
 | 
						|
last-snapshot-size: 10
 | 
						|
size-since-last-snapshot: 1
 | 
						|
 | 
						|
add 5
 | 
						|
----
 | 
						|
last-snapshot-size: 10
 | 
						|
size-since-last-snapshot: 6
 | 
						|
 | 
						|
should-rotate 5
 | 
						|
----
 | 
						|
true
 | 
						|
 | 
						|
should-rotate 100
 | 
						|
----
 | 
						|
false
 |