github.com/fozzysec/SiaPrime@v0.0.0-20190612043147-66c8e8d11fe3/cmd/spc/consts.go (about)

     1  package main
     2  
     3  import (
     4  	"time"
     5  )
     6  
     7  const (
     8  	// OutputRefreshRate is the rate at which siac will update something like a
     9  	// progress meter when displaying a continuous action like a download.
    10  	OutputRefreshRate = 250 * time.Millisecond
    11  
    12  	// RenterDownloadTimeout is the amount of time that needs to elapse before
    13  	// the download command gives up on finding a download in the download list.
    14  	RenterDownloadTimeout = time.Minute
    15  
    16  	// SpeedEstimationWindow is the size of the window which we use to
    17  	// determine download speeds.
    18  	SpeedEstimationWindow = 60 * time.Second
    19  )