Increase max db limit
Increase wallet startup time allotment for big channels Set FPS to float instead of int
This commit is contained in:
parent
13543b20e9
commit
fc18151d77
3 changed files with 3 additions and 3 deletions
|
@ -121,7 +121,7 @@ type Format struct {
|
||||||
Ext string `json:"ext"`
|
Ext string `json:"ext"`
|
||||||
FragmentBaseURL string `json:"fragment_base_url,omitempty"`
|
FragmentBaseURL string `json:"fragment_base_url,omitempty"`
|
||||||
Filesize interface{} `json:"filesize"`
|
Filesize interface{} `json:"filesize"`
|
||||||
Fps int `json:"fps"`
|
Fps float64 `json:"fps"`
|
||||||
Fragments []struct {
|
Fragments []struct {
|
||||||
Path string `json:"path"`
|
Path string `json:"path"`
|
||||||
Duration float64 `json:"duration,omitempty"`
|
Duration float64 `json:"duration,omitempty"`
|
||||||
|
|
|
@ -424,7 +424,7 @@ func (s *Sync) waitForDaemonStart() error {
|
||||||
if err == nil && status.StartupStatus.Wallet && status.IsRunning {
|
if err == nil && status.StartupStatus.Wallet && status.IsRunning {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if time.Since(beginTime).Minutes() > 60 {
|
if time.Since(beginTime).Minutes() > 120 {
|
||||||
s.grp.Stop()
|
s.grp.Stop()
|
||||||
return errors.Err("the daemon is taking too long to start. Something is wrong")
|
return errors.Err("the daemon is taking too long to start. Something is wrong")
|
||||||
}
|
}
|
||||||
|
|
|
@ -255,7 +255,7 @@ func CleanupLbrynet() error {
|
||||||
}
|
}
|
||||||
return errors.Err(err)
|
return errors.Err(err)
|
||||||
}
|
}
|
||||||
dbSizeLimit := int64(1 * 1024 * 1024 * 1024)
|
dbSizeLimit := int64(2 * 1024 * 1024 * 1024)
|
||||||
if db.Size() > dbSizeLimit {
|
if db.Size() > dbSizeLimit {
|
||||||
files, err := filepath.Glob(lbryumDir + "/blockchain.db*")
|
files, err := filepath.Glob(lbryumDir + "/blockchain.db*")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue