|
@@ -217,7 +217,7 @@ func queryInfluxDbCores(metrics []string, uuid string, socket,
|
|
|
|
|
|
|
|
|
var command strings.Builder
|
|
|
- fmt.Fprintf(&command, "SELECT %s from core_metrics where uuid = '%s' and socket_id='%d' and %s order by time desc limit %d", columns, uuid, socket, coresPart.String(), numberOfRows)
|
|
|
+ fmt.Fprintf(&command, "SELECT %s from core_metrics where uuid = '%s' and socket_id='%d' and %s order by time desc limit %d", columns, uuid, socket, coresPart.String(), numberOfRows*len(cores))
|
|
|
|
|
|
q := client.NewQuery(command.String(), cfg.Database.Name, "")
|
|
|
response, err := c.Query(q)
|