Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37761080
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: influxdb

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: influxdb-opentsdb-fix.patch
Скачать


From e44a530f8921ac57f2ab37c73da8b2458e83d279 Mon Sep 17 00:00:00 2001
From: Dmitry Nikulin <theowl@etersoft.ru>
Date: Wed, 5 Jun 2019 18:46:16 +0300
Subject: [PATCH] fix(opentsdb): fix writing millisecond timestamps through
 OpenTSDB telnet protocol
diff --git a/services/opentsdb/service.go b/services/opentsdb/service.go
index ff4bc58691..af02d446e5 100644
--- a/services/opentsdb/service.go
+++ b/services/opentsdb/service.go
@@ -403,7 +403,7 @@ func (s *Service) handleTelnetConn(conn net.Conn) {
 		case 10:
 			t = time.Unix(ts, 0)
 		case 13:
-			t = time.Unix(ts/1000, (ts%1000)*1000)
+			t = time.Unix(ts/1000, (ts%1000)*1000000)
 		default:
 			atomic.AddInt64(&s.stats.TelnetBadTime, 1)
 			if s.LogPointErrors {
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin