From fb1be420ae47b8c9cff6e4175c61addf7ed608a3 Mon Sep 17 00:00:00 2001 From: jm-clius Date: Fri, 18 Mar 2022 10:36:27 +0000 Subject: [PATCH] deploy: 994ac494724e636bee34ac1ddbbe0eb316cd04f9 --- tests/v2/test_message_store.nim | 2 +- .../nim-libbacktrace/vendor/libbacktrace-upstream/libtool | 2 +- waku/v2/utils/time.nim | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/v2/test_message_store.nim b/tests/v2/test_message_store.nim index fc7031804..cda8190f5 100644 --- a/tests/v2/test_message_store.nim +++ b/tests/v2/test_message_store.nim @@ -19,7 +19,7 @@ suite "Message Store": t1 = getNanosecondTime(epochTime()) t2 = getNanosecondTime(epochTime()) - t3 = getNanosecondTime(high(float64)) + t3 = high(int64) var msgs = @[ WakuMessage(payload: @[byte 1, 2, 3], contentTopic: topic, version: uint32(0), timestamp: t1), WakuMessage(payload: @[byte 1, 2, 3, 4], contentTopic: topic, version: uint32(1), timestamp: t2), diff --git a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool index 617cde2dd..6bf30469d 100755 --- a/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool +++ b/vendor/nim-libbacktrace/vendor/libbacktrace-upstream/libtool @@ -2,7 +2,7 @@ # libtool - Provide generalized library-building support services. # Generated automatically by config.status (libbacktrace) version-unused -# Libtool was configured on host fv-az457-433: +# Libtool was configured on host fv-az173-167: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, diff --git a/waku/v2/utils/time.nim b/waku/v2/utils/time.nim index ae4d55cd3..3208efd7b 100644 --- a/waku/v2/utils/time.nim +++ b/waku/v2/utils/time.nim @@ -9,15 +9,15 @@ type Timestamp* = int64 const TIMESTAMP_TABLE_TYPE* = "INTEGER" proc getNanosecondTime*[T](timeInSeconds: T): Timestamp = - var ns = Timestamp(timeInSeconds*1000_000_000) + var ns = Timestamp(timeInSeconds.int64 * 1000_000_000.int64) return ns proc getMicrosecondTime*[T](timeInSeconds: T): Timestamp = - var us = Timestamp(timeInSeconds*1000_000) + var us = Timestamp(timeInSeconds.int64 * 1000_000.int64) return us proc getMillisecondTime*[T](timeInSeconds: T): Timestamp = - var ms = Timestamp(timeInSeconds*1000) + var ms = Timestamp(timeInSeconds.int64 * 1000.int64) return ms proc column_timestamp*(a1: ptr sqlite3_stmt, iCol: cint): int64 =