Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
lezhnev74 committed Sep 3, 2024
1 parent f4034cd commit f7a1acd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Binary file added Heaplog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions ui/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"log"
"os"
"path/filepath"
"runtime/debug"
"time"
)

Expand Down Expand Up @@ -294,9 +295,14 @@ func NewHeaplog(cfg Config, startBackground bool) (*HeaplogApp, error) {
select {
case <-t.C:
go func() {
_, err := ii.Merge(20, 30, int(cfg.Concurrency))
if err != nil {
log.Printf("merging inverted index segments: %s", err)
for {
merged, err := ii.Merge(20, 30, int(cfg.Concurrency))
if err != nil {
log.Printf("merging inverted index segments: %s", err)
}
if merged == 0 {
break
}
}
}()

Expand Down Expand Up @@ -326,6 +332,8 @@ func NewHeaplog(cfg Config, startBackground bool) (*HeaplogApp, error) {
return
}
}

debug.FreeOSMemory()
}
}()
}
Expand Down

0 comments on commit f7a1acd

Please sign in to comment.