mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Shows 10 versions
Former-commit-id: 4c86cbd0882180d311bde4b56d546a438cfed086 [formerly 93df780b860c53c4699268e1b7c80a76ab1a8ca1] [formerly 4aba52ca5563b8e00bab7677a93400334356e6a6 [formerly bd51d8c44b
]]
Former-commit-id: 37f14c9dc980fbd7bc1df3e9a822340f8e094519 [formerly aac0e7b0821e82e214f48ba7507eff2fe8d5f4e3]
Former-commit-id: 7baf2c10cdb81e220c167188c3f03f73fcd8ca50
This commit is contained in:
parent
529e6c5918
commit
a5bb189663
2
utils.go
2
utils.go
@ -137,7 +137,7 @@ func getImportantVersions(p CowyoData) []versionsInfo {
|
|||||||
if s != 0 && s != len(n) {
|
if s != 0 && s != len(n) {
|
||||||
fmt.Printf("%d, %d\n", s, k)
|
fmt.Printf("%d, %d\n", s, k)
|
||||||
importantVersions = append(importantVersions, s)
|
importantVersions = append(importantVersions, s)
|
||||||
if len(importantVersions) > 3 {
|
if len(importantVersions) > 10 {
|
||||||
sort.Ints(importantVersions)
|
sort.Ints(importantVersions)
|
||||||
for _, nn := range importantVersions {
|
for _, nn := range importantVersions {
|
||||||
r = append(r, versionsInfo{p.Timestamps[nn], nn})
|
r = append(r, versionsInfo{p.Timestamps[nn], nn})
|
||||||
|
Loading…
Reference in New Issue
Block a user