Permalink
Browse files

min fix

  • Loading branch information...
1 parent a937be2 commit b50602aa20d55b057e253da655eaeb7cdc4e4b49 @paulosuzart committed Jul 23, 2011
Showing with 5 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +2 −2 util.go
  3. +1 −1 workers.go
View
@@ -8,3 +8,5 @@ master.sh
gb
Presentation1.pptx
+
+~/Library/Application Support/TextMate/Bundles/Go.tmbundle/
View
@@ -86,8 +86,8 @@ func counting(f func()) int64 {
//Just converts a nanosecond value to a milisecond value.
func nan2mi(value float64) float64 {
- return value / 1000000
-}
+ return value * 0.000001
+ }
//Custom formats used in the output template.
//f2mi means float64 to miliseconds and i2mi
View
@@ -132,7 +132,7 @@ func importMasterChan(t Task) (c chan WorkSummary) {
//A cache watcher function cleans up the cache after
//2 times the session length
func cacheWatcher(session Session) {
- time.Sleep(session.Timeout * 1.3)
+ time.Sleep(session.Timeout * 2)
mu.Lock()
log.Printf("Cleanning up Session %v", session.Id)
_sessions[session.Id] = _sessions[session.Id], false

0 comments on commit b50602a

Please sign in to comment.