Fix "last seen" timestamp

This commit is contained in:
badaix 2020-03-11 22:02:35 +01:00
parent 4587637487
commit 90785a87da
4 changed files with 32 additions and 12 deletions

View file

@ -64,13 +64,12 @@ enum message_type
};
struct tv
{
tv()
{
timeval t;
chronos::systemtimeofday(&t);
chronos::steadytimeofday(&t);
sec = t.tv_sec;
usec = t.tv_usec;
}