struct json_object notify_json;
char *filter = NULL;
char *subdir_filter = NULL;
+ struct timeval_buf tv_buf;
+ struct timeval val;
+ char *time = NULL;
char *pid = NULL;
struct server_id_buf tmp;
int result = 0;
if (result < 0) {
goto failure;
}
+ val = convert_timespec_to_timeval(instance->creation_time);
+ time = timeval_str_buf(&val, true, true, &tv_buf);
+ result = json_add_string(&sub_json, "creation_time", time);
+ if (result < 0) {
+ goto failure;
+ }
pid = server_id_str_buf(server_id, &tmp);
result = json_add_object(¬ify_json, pid, &sub_json);