mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
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:
parent
956b2ae70c
commit
d3af4e670d
@ -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…
Reference in New Issue
Block a user