Update PCP platform to use the old hostname API call

Fixes CI builds which are on an old version of PCP.
main
Nathan Scott 5 years ago
parent 956b2ae70c
commit d3af4e670d
  1. 3
      pcp/Platform.c

@ -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) {

Loading…
Cancel
Save