Patch by Jaswinder Singh Rajput to fix FTP progress display
This commit is contained in:
		
							parent
							
								
									8a44a44cb9
								
							
						
					
					
						commit
						c85bd7edb9
					
				@ -183,7 +183,7 @@ unsigned long total=0L;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if(atty && fd > 2) {
 | 
			
		||||
		printf("%9lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
 | 
			
		||||
		printf("%11lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
 | 
			
		||||
		fflush(stdout);
 | 
			
		||||
	}
 | 
			
		||||
   }
 | 
			
		||||
@ -213,7 +213,7 @@ unsigned long total=0L;
 | 
			
		||||
	write(fd, buffer, s);
 | 
			
		||||
	total += (long)s;
 | 
			
		||||
	if(atty && fd > 2) {
 | 
			
		||||
		printf("%9lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
 | 
			
		||||
		printf("%11lu bytes\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b", total);
 | 
			
		||||
		fflush(stdout);
 | 
			
		||||
	}
 | 
			
		||||
   }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user