|
@@ -64,7 +64,7 @@ func (s *Schedule) Next(t time.Time) time.Time {
|
|
|
// values)
|
|
// values)
|
|
|
|
|
|
|
|
// Start at the earliest possible time.
|
|
// Start at the earliest possible time.
|
|
|
- t = t.Add(1 * time.Second)
|
|
|
|
|
|
|
+ t = t.Add(1*time.Second - time.Duration(t.Nanosecond())*time.Nanosecond)
|
|
|
|
|
|
|
|
// This flag indicates whether a field has been incremented.
|
|
// This flag indicates whether a field has been incremented.
|
|
|
added := false
|
|
added := false
|