Skip to content

Commit fed6841

Browse files
authored
Merge pull request #6 from Netuitive/0.2.2
0.2.2
2 parents 9765eee + 1639003 commit fed6841

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.1
2+
current_version = 0.2.2
33
commit = False
44
tag = False
55
files = setup.py netuitive/__init__.py

HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
History
44
-------
55

6+
0.2.2 (2016-09-30)
7+
---------------------
8+
9+
* fix millisecond timestamps
10+
611
0.2.1 (2016-09-30)
712
---------------------
813

netuitive/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
__author__ = 'Netuitive, Inc'
4-
__version__ = '0.2.1'
4+
__version__ = '0.2.2'
55

66
from .client import Client # nopep8 # flake8: noqa
77
from .element import Element # nopep8 # flake8: noqa

netuitive/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def post(self, element):
114114
else:
115115
logging.exception(
116116
'error posting payload to api ingest endpoint (%s): %s',
117-
self.eventurl, e)
117+
self.dataurl, e)
118118

119119
except Exception as e:
120120
logging.exception(

netuitive/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def to_ms_timestamp(dt, epoch=datetime(1970, 1, 1)):
88
td = dt - epoch
9-
return (td.microseconds + (td.seconds + td.days * 86400) * 10**3)
9+
return ((td.microseconds + (td.seconds + td.days * 86400) * 10**6) / 10**3)
1010

1111

1212
def to_ms_timestamp_int(dt, epoch=datetime(1970, 1, 1)):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
setup(
2626
name='netuitive',
27-
version='0.2.1',
27+
version='0.2.2',
2828
description="Python Client for Netuitive Cloud",
2929
long_description=readme + '\n\n' + history,
3030
author="Netuitive",

0 commit comments

Comments
 (0)