Revision 60bdc106 events.c

View differences:

events.c
59 59
	/* Prepare the event to notify as a Jansson json_t object */
60 60
	json_t *event = json_object();
61 61
	json_object_set_new(event, "type", json_integer(type));
62
	json_object_set_new(event, "timestamp", json_integer(janus_get_monotonic_time()));
62
	json_object_set_new(event, "timestamp", json_integer(janus_get_real_time()));
63 63
	if(type != JANUS_EVENT_TYPE_CORE) {			/* Core events don't have a session ID */
64 64
		if(session_id == 0 && (type == JANUS_EVENT_TYPE_PLUGIN || type == JANUS_EVENT_TYPE_TRANSPORT)) {
65 65
			/* ... but plugin/transport events may not have one either */

Also available in: Unified diff