Skip to content

User uptime on Hub - #26

Open
KuZon wants to merge 2 commits into
HiT-Hi-FiT-Hai:masterfrom
KuZon:uptime
Open

User uptime on Hub#26
KuZon wants to merge 2 commits into
HiT-Hi-FiT-Hai:masterfrom
KuZon:uptime

Conversation

@KuZon

@KuZon KuZon commented Jan 13, 2016

Copy link
Copy Markdown

works for only registered users
created a new table uptime

@hjpotter92

Copy link
Copy Markdown
Member

There is no need for this. If you look at the user table available in PtokaX documentation, you'll notice the field:

iLoginTime  - User login time in seconds from 1.1.1970

You can use this, in conjecture with os.time() or os.date() to compute user's uptime.

Comment thread sql/stats.sql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a primary id and unique nick, this indexing is redundant.

@KuZon

KuZon commented Jan 13, 2016

Copy link
Copy Markdown
Author

Oops..Didn't knew that iLoginTime is provided in API
I actually wanted to create a table with current session uptime and user's ip in that session. @nishithshah2211 suggested that it would be a lot of I/O.Any suggestions to improve / change this thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants