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
6 changes: 3 additions & 3 deletions cryptlex/lexfloatclient/lexfloatclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ def GetHostLicenseMeterAttribute(name):
HostLicenseMeterAttribute: values of meter attribute allowed and total uses
"""
cstring_name = LexFloatClientNative.get_ctype_string(name)
allowed_uses = ctypes.c_uint()
total_uses = ctypes.c_uint()
gross_uses = ctypes.c_uint()
allowed_uses = ctypes.c_int64()
total_uses = ctypes.c_uint64()
gross_uses = ctypes.c_uint64()
status = LexFloatClientNative.GetHostLicenseMeterAttribute(
cstring_name, ctypes.byref(allowed_uses), ctypes.byref(total_uses), ctypes.byref(gross_uses))
if status == LexFloatStatusCodes.LF_OK:
Expand Down
2 changes: 1 addition & 1 deletion cryptlex/lexfloatclient/lexfloatclient_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def byte_to_string(input):
GetHostLicenseMetadata.restype = c_int

GetHostLicenseMeterAttribute = library.GetHostLicenseMeterAttribute
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_uint32), POINTER(c_uint32), POINTER(c_uint32)]
GetHostLicenseMeterAttribute.argtypes = [CSTRTYPE, POINTER(c_int64), POINTER(c_uint64), POINTER(c_uint64)]
GetHostLicenseMeterAttribute.restype = c_int

GetHostLicenseExpiryDate = library.GetHostLicenseExpiryDate
Expand Down