mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
Issue - (#10): The hist_* is not working in CentOS.
Remove some old code, missed previously.
This commit is contained in:
@@ -3429,18 +3429,17 @@ array_get_datum(double arr[])
|
||||
char tmp[10];
|
||||
bool first = true;
|
||||
|
||||
memset(str, 0, 1024);
|
||||
/* Need to calculate the actual size, and avoid unnessary memory usage */
|
||||
for (j = 0; j < 24; j++)
|
||||
{
|
||||
if (first)
|
||||
{
|
||||
snprintf(str, 1024, "%s %04.1f", str, arr[j]);
|
||||
snprintf(tmp, 10, "%04.1f", arr[j]);
|
||||
strcat(str,tmp);
|
||||
first = false;
|
||||
continue;
|
||||
}
|
||||
sprintf(str, "%s, %04.1f", str, arr[j]);
|
||||
snprintf(tmp, 10, ", %04.1f", arr[j]);
|
||||
strcat(str,tmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user