summaryrefslogtreecommitdiff
path: root/docs/uptime.md
blob: 7408f50088bb7c4fee8a3a955d04fac8a0115e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# uptime

[<-Back-to:Auth](database-auth.md)

**The \`uptime\` table**

This table holds the server's uptime. The core will automatically update the latest entry's value until it crashes and a new record is added.

**Structure**

| Field           | Type         | Attributes | Key | Null | Default     | Extra | Comment |
|-----------------|--------------|------------|-----|------|-------------|-------|---------|
| [realmid][1]    | int(10)      | unsigned   | PRI | NO   |             |       |         |
| [starttime][2]  | int(10)      | unsigned   | PRI | NO   | 0           |       |         |
| [uptime][3]     | int(10)      | unsigned   |     | NO   | 0           |       |         |
| [maxplayers][4] | smallint(5)  | unsigned   |     | NO   | 0           |       |         |
| [revision][5]   | varchar(255) | signed     |     | NO   | AzerothCore |       |         |

[1]: #realmid
[2]: #starttime
[3]: #uptime
[4]: #maxplayers
[5]: #revision

**Description of the fields**

### realmid

The ID of the realm. See [realmlist.id](realmlist#id)

### starttime

The time when the server was started, in Unix time.

### uptime

The uptime of the server, in seconds.

### maxplayers

The maximum number of players connected.

### revision

The detailed revision of the worldserver