graph/db: fix log precision
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -2150,8 +2150,8 @@ func (c *KVStore) ChanUpdatesInHorizon(startTime,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(edgesInHorizon) > 0 {
|
if len(edgesInHorizon) > 0 {
|
||||||
log.Debugf("ChanUpdatesInHorizon hit percentage: %f (%d/%d)",
|
log.Debugf("ChanUpdatesInHorizon hit percentage: %.2f (%d/%d)",
|
||||||
float64(hits)/float64(len(edgesInHorizon)), hits,
|
float64(hits)*100/float64(len(edgesInHorizon)), hits,
|
||||||
len(edgesInHorizon))
|
len(edgesInHorizon))
|
||||||
} else {
|
} else {
|
||||||
log.Debugf("ChanUpdatesInHorizon returned no edges in "+
|
log.Debugf("ChanUpdatesInHorizon returned no edges in "+
|
||||||
|
|||||||
@@ -1103,8 +1103,8 @@ func (s *SQLStore) ChanUpdatesInHorizon(startTime,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if len(edges) > 0 {
|
if len(edges) > 0 {
|
||||||
log.Debugf("ChanUpdatesInHorizon hit percentage: %f (%d/%d)",
|
log.Debugf("ChanUpdatesInHorizon hit percentage: %.2f (%d/%d)",
|
||||||
float64(hits)/float64(len(edges)), hits, len(edges))
|
float64(hits)*100/float64(len(edges)), hits, len(edges))
|
||||||
} else {
|
} else {
|
||||||
log.Debugf("ChanUpdatesInHorizon returned no edges in "+
|
log.Debugf("ChanUpdatesInHorizon returned no edges in "+
|
||||||
"horizon (%s, %s)", startTime, endTime)
|
"horizon (%s, %s)", startTime, endTime)
|
||||||
|
|||||||
Reference in new issue
Block a user