Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/hiveview: Update max entries on hiveview #1074

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/hiveview/listing.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ import (
"github.com/ethereum/hive/internal/libhive"
)

const listLimit = 200 // number of runs reported
const listLimit = 10000 // number of runs reported

// generateListing processes hive simulation output files and generates a listing file.
func generateListing(fsys fs.FS, dir string, output io.Writer) error {
var (
stop = errors.New("stop")
entries []listingEntry
)
// The files are walked in name order high->low. So to get the latest 200 items, we
// just need to keep going until we have 200.
// The files are walked in name order high->low. So to get the latest 10000 items, we
// just need to keep going until we have 10000.
err := walkSummaryFiles(fsys, dir, func(suite *libhive.TestSuite, fi fs.FileInfo) error {
entry := suiteToEntry(suite, fi)
entries = append(entries, entry)
Expand Down