summaryrefslogtreecommitdiffstats
path: root/server/main_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/main_channel.c')
-rw-r--r--server/main_channel.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/server/main_channel.c b/server/main_channel.c
index 0ecc9df8..176584af 100644
--- a/server/main_channel.c
+++ b/server/main_channel.c
@@ -47,6 +47,7 @@
#include "reds.h"
#include "migration_protocol.h"
#include "main_dispatcher.h"
+#include "utils.h"
#define ZERO_BUF_SIZE 4096
@@ -590,20 +591,13 @@ void main_channel_client_push_notify(MainChannelClient *mcc, const char *msg)
red_channel_client_pipe_add_push(&mcc->base, item);
}
-static uint64_t get_time_stamp(void)
-{
- struct timespec time_space;
- clock_gettime(CLOCK_MONOTONIC, &time_space);
- return time_space.tv_sec * 1000 * 1000 * 1000 + time_space.tv_nsec;
-}
-
static void main_channel_marshall_notify(RedChannelClient *rcc,
SpiceMarshaller *m, NotifyPipeItem *item)
{
SpiceMsgNotify notify;
red_channel_client_init_send_data(rcc, SPICE_MSG_NOTIFY, &item->base);
- notify.time_stamp = get_time_stamp(); // TODO - move to main_new_notify_item
+ notify.time_stamp = red_get_monotonic_time(); // TODO - move to main_new_notify_item
notify.severity = SPICE_NOTIFY_SEVERITY_WARN;
notify.visibilty = SPICE_NOTIFY_VISIBILITY_HIGH;
notify.what = SPICE_WARN_GENERAL;