Fix delay handling
This commit is contained in:
		
							parent
							
								
									bd0c26dd2d
								
							
						
					
					
						commit
						b219064794
					
				| 
						 | 
					@ -96,7 +96,7 @@ sub upload {
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                        # If the file size is lower than the lowest configured size or if there is no delay_for_size setting, we choose the configured max delay
 | 
					                        # If the file size is lower than the lowest configured size or if there is no delay_for_size setting, we choose the configured max delay
 | 
				
			||||||
                        unless (defined $delay) {
 | 
					                        unless (defined $delay) {
 | 
				
			||||||
                            $delay = ($json->{delay} <= $c->max_delay || $c->max_delay == 0) ? $json->{delay} : $c->max_delay;
 | 
					                            $delay = (($json->{delay} > 0 && $json->{delay} <= $c->max_delay) || $c->max_delay == 0) ? $json->{delay} : $c->max_delay;
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        my $creator = $c->ip;
 | 
					                        my $creator = $c->ip;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue