Mercurial > gemma
comparison pkg/controllers/bottlenecks.go @ 4861:2ede9ac26ef2
Removed verbose output of optimisticPadClassification, (was for debugging only).
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 04 Dec 2019 15:29:42 +0100 |
parents | de7aa9230837 |
children | 1a9e3e5feaa7 |
comparison
equal
deleted
inserted
replaced
4860:de7aa9230837 | 4861:2ede9ac26ef2 |
---|---|
159 | 159 |
160 // If the actual duration is smaller than the length | 160 // If the actual duration is smaller than the length |
161 // of the classifaction interval extend the | 161 // of the classifaction interval extend the |
162 // time spend in the highest class by the difference. | 162 // time spend in the highest class by the difference. |
163 if delta := to.Sub(from) - actualDuration; delta > 0 { | 163 if delta := to.Sub(from) - actualDuration; delta > 0 { |
164 log.Printf("info: time interval: (%v - %v)\n", from, to) | |
165 log.Printf("info: found only data for %.2f hours, padding by %.2f hours\n", | |
166 actualDuration.Hours(), delta.Hours()) | |
167 classified[len(classified)-1] += delta | 164 classified[len(classified)-1] += delta |
168 } | 165 } |
169 | 166 |
170 return classified | 167 return classified |
171 } | 168 } |