MXS-2208 Move trim-functions from maxscale to maxbase
log.h now includes string.hh, which is conceptually wrong, but log.h will shortly disappear and be superceded by log.hh.
This commit is contained in:
@ -1432,7 +1432,7 @@ static json_t* server_json_attributes(const SERVER* server)
|
||||
char timebuf[30];
|
||||
time_t tim = server->node_ts;
|
||||
asctime_r(localtime_r(&tim, &result), timebuf);
|
||||
trim(timebuf);
|
||||
mxb::trim(timebuf);
|
||||
|
||||
json_object_set_new(attr, "last_heartbeat", json_string(timebuf));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user