1
0
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:
Zack Scholl 2016-02-09 18:47:08 -05:00
parent f6cb433106
commit bd51d8c44b

View File

@ -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})