mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Shows 10 versions
This commit is contained in:
parent
f6cb433106
commit
bd51d8c44b
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