mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	fix #664
This commit is contained in:
		
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							@@ -17,7 +17,7 @@ import (
 | 
			
		||||
	"github.com/gogits/gogs/modules/setting"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
const APP_VER = "0.5.8.1124 Beta"
 | 
			
		||||
const APP_VER = "0.5.8.1125 Beta"
 | 
			
		||||
 | 
			
		||||
func init() {
 | 
			
		||||
	runtime.GOMAXPROCS(runtime.NumCPU())
 | 
			
		||||
 
 | 
			
		||||
@@ -62,7 +62,7 @@ func Commits(ctx *middleware.Context) {
 | 
			
		||||
		lastPage = 0
 | 
			
		||||
	}
 | 
			
		||||
	nextPage := page + 1
 | 
			
		||||
	if nextPage*50 > commitsCount {
 | 
			
		||||
	if page*50 > commitsCount {
 | 
			
		||||
		nextPage = 0
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +1 @@
 | 
			
		||||
0.5.8.1124 Beta
 | 
			
		||||
0.5.8.1125 Beta
 | 
			
		||||
		Reference in New Issue
	
	Block a user