SleepString returns a string "N-M minutes" if the goroutine(s) slept for a long time. Returns an empty string otherwise.
()
| 760 | // |
| 761 | // Returns an empty string otherwise. |
| 762 | func (s *Signature) SleepString() string { |
| 763 | if s.SleepMax == 0 { |
| 764 | return "" |
| 765 | } |
| 766 | if s.SleepMin != s.SleepMax { |
| 767 | return fmt.Sprintf("%d~%d minutes", s.SleepMin, s.SleepMax) |
| 768 | } |
| 769 | return fmt.Sprintf("%d minutes", s.SleepMax) |
| 770 | } |
| 771 | |
| 772 | // updateLocations calls updateLocations on both CreatedBy and Stack and |
| 773 | // returns true if they were both resolved. |
no outgoing calls