Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.2.1
current_version = 0.2.2
commit = False
tag = False
files = setup.py netuitive/__init__.py
Expand Down
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
History
-------

0.2.2 (2016-09-30)
---------------------

* fix millisecond timestamps

0.2.1 (2016-09-30)
---------------------

Expand Down
2 changes: 1 addition & 1 deletion netuitive/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-

__author__ = 'Netuitive, Inc'
__version__ = '0.2.1'
__version__ = '0.2.2'

from .client import Client # nopep8 # flake8: noqa
from .element import Element # nopep8 # flake8: noqa
Expand Down
2 changes: 1 addition & 1 deletion netuitive/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def post(self, element):
else:
logging.exception(
'error posting payload to api ingest endpoint (%s): %s',
self.eventurl, e)
self.dataurl, e)

except Exception as e:
logging.exception(
Expand Down
2 changes: 1 addition & 1 deletion netuitive/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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


def to_ms_timestamp_int(dt, epoch=datetime(1970, 1, 1)):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

setup(
name='netuitive',
version='0.2.1',
version='0.2.2',
description="Python Client for Netuitive Cloud",
long_description=readme + '\n\n' + history,
author="Netuitive",
Expand Down