diff --git a/main.go b/main.go index 3c83412..3384c87 100644 --- a/main.go +++ b/main.go @@ -24,6 +24,10 @@ var ( } ) +const ( + progressBarWidth = 40 +) + func registerApp(config *Config) (string, error) { app, err := mastodon.RegisterApp(context.Background(), &mastodon.AppConfig{ Server: config.Value("instance").(string), diff --git a/search.go b/search.go index b0939e4..df4132c 100644 --- a/search.go +++ b/search.go @@ -33,7 +33,7 @@ func search(token string) error { return fmt.Sprintf("%d of %d", p.Current, int64(math.Max(float64(p.Current), float64(self.StatusesCount)))) }, Current: 0, - Width: 40, + Width: progressBarWidth, } var pg mastodon.Pagination diff --git a/stats.go b/stats.go index c1f39b1..d883795 100644 --- a/stats.go +++ b/stats.go @@ -77,7 +77,7 @@ func gatherStats() error { return fmt.Sprintf("%d of %d", p.Current, int64(math.Max(float64(p.Current), float64(self.StatusesCount)))) }, Current: 0, - Width: 40, + Width: progressBarWidth, } var pg mastodon.Pagination