kopia lustrzana https://github.com/muesli/mastotool
Make progressBarWidth a const
rodzic
339bdd1c85
commit
b43f0d52a9
4
main.go
4
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),
|
||||
|
|
|
@ -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
|
||||
|
|
2
stats.go
2
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
|
||||
|
|
Ładowanie…
Reference in New Issue