fixed broken getepoch

This commit is contained in:
Kevin Froman 2018-05-18 16:49:05 -05:00
parent 16282d79d3
commit 78265990ab
No known key found for this signature in database
GPG key ID: 0D414D0FE405B63B
2 changed files with 6 additions and 3 deletions

View file

@ -18,7 +18,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
# Misc functions that do not fit in the main api, but are useful
import getpass, sys, requests, os, socket, hashlib, logger, sqlite3, config, binascii, time, base64, json, glob, shutil
import getpass, sys, requests, os, socket, hashlib, logger, sqlite3, config, binascii, time, base64, json, glob, shutil, math
import nacl.signing, nacl.encoding
if sys.version_info < (3, 6):
@ -473,7 +473,7 @@ class OnionrUtils:
sys.stdout.write("\r{0}{1}%".format(arrow + spaces, int(round(percent * 100))))
sys.stdout.flush()
def getEpoch():
def getEpoch(self):
'''returns epoch'''
return math.floor(time.time())