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 7a02a57e69ea5cee7fbdef08adf45ab5e9fc0616 [formerlybd51d8c44b
]]] Former-commit-id: 37f14c9dc980fbd7bc1df3e9a822340f8e094519 [formerly aac0e7b0821e82e214f48ba7507eff2fe8d5f4e3] Former-commit-id: 7baf2c10cdb81e220c167188c3f03f73fcd8ca50 Former-commit-id:a5bb189663
This commit is contained in:
parent
9e655c497b
commit
7860593f6c
2
utils.go
2
utils.go
@ -137,7 +137,7 @@ func getImportantVersions(p CowyoData) []versionsInfo {
|
||||
if s != 0 && s != len(n) {
|
||||
fmt.Printf("%d, %d\n", s, k)
|
||||
importantVersions = append(importantVersions, s)
|
||||
if len(importantVersions) > 3 {
|
||||
if len(importantVersions) > 10 {
|
||||
sort.Ints(importantVersions)
|
||||
for _, nn := range importantVersions {
|
||||
r = append(r, versionsInfo{p.Timestamps[nn], nn})
|
||||
|
Loading…
Reference in New Issue
Block a user