Update PCP platform to use the old hostname API call

Fixes CI builds which are on an old version of PCP.
This commit is contained in:
Nathan Scott 2021-03-05 16:54:30 +11:00
parent 956b2ae70c
commit d3af4e670d

View File

@ -654,7 +654,8 @@ void Platform_setZfsCompressedArcValues(Meter* this) {
}
void Platform_getHostname(char* buffer, size_t size) {
pmGetHostName(pcp->context, buffer, size);
const char* hostname = pmGetContextHostName(pcp->context);
String_safeStrncpy(buffer, hostname, size);
}
void Platform_getRelease(char** string) {