summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-08 00:21:12 -0400
committerPietro Gagliardi <[email protected]>2014-04-08 00:21:12 -0400
commit69b63dbbb8762ba53f260959a753f83cf35ccf47 (patch)
treeee4a91f448d0023c049a66a6c4ab242855b08bb9 /sysdata_unix.go
parent64df42356b6483811ef9d3e24445252ef2730c8f (diff)
Slowed GTK+ indeterminate Progressbars down.
Diffstat (limited to 'sysdata_unix.go')
-rw-r--r--sysdata_unix.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdata_unix.go b/sysdata_unix.go
index 50b51cd..8e61a4f 100644
--- a/sysdata_unix.go
+++ b/sysdata_unix.go
@@ -296,8 +296,8 @@ func (s *sysData) progressPulse() {
var ticker *time.Ticker
var tickchan <-chan time.Time
- // the default on Windows
- const pulseRate = 30 * time.Millisecond
+ // the pulse rate used by Zenity (https://git.gnome.org/browse/zenity/tree/src/progress.c#n69 for blob cbffe08e8337ba1375a0ac7210eff5a2e4313bb8)
+ const pulseRate = 100 * time.Millisecond
for {
select {
@@ -305,7 +305,7 @@ func (s *sysData) progressPulse() {
if start {
ticker = time.NewTicker(pulseRate)
tickchan = ticker.C
- pulse() // start the pulse animation now, not 30ms later
+ pulse() // start the pulse animation now, not 100ms later
} else {
if ticker != nil {
ticker.Stop()