[spice-streaming-agent PATCH] mjpeg: get_time: fix off-by-0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Only 9 0's are required

Signed-off-by: Uri Lublin <uril@xxxxxxxxxx>
---
 src/mjpeg-fallback.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mjpeg-fallback.cpp b/src/mjpeg-fallback.cpp
index 09f3769..1b263f2 100644
--- a/src/mjpeg-fallback.cpp
+++ b/src/mjpeg-fallback.cpp
@@ -26,7 +26,7 @@ static inline uint64_t get_time()
 
     clock_gettime(CLOCK_MONOTONIC, &now);
 
-    return (uint64_t)now.tv_sec * 10000000000u + (uint64_t)now.tv_nsec;
+    return (uint64_t)now.tv_sec * 1000000000u + (uint64_t)now.tv_nsec;
 }
 
 namespace {
-- 
2.20.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]