Add time unit suffixes to variables (#561)

Add suffixes like Ms and Ns to variables whos time unit is not in
seconds.  This is aligning with a new code style of putting units
on variables that are not in SI base units.
This commit is contained in:
Hornwitser authored and GitHub committed 2024-01-20 13:26:55 +01:00
1 parent 9842705eb9
commit c53781d16c
38 files changed
+221 -201

No files matched your search

+6 -6
View File
@@ -64,7 +64,7 @@ describe("class Instance", function() {
"player",
new PlayerStats({
join_count: 1,
last_join_at: stats.lastJoinAt.getTime(),
last_join_at_ms: stats.lastJoinAt.getTime(),
})
)
),
@@ -111,8 +111,8 @@ describe("class Instance", function() {
new PlayerStats({
join_count: 1,
online_time_ms: stats.onlineTimeMs,
last_join_at: stats.lastJoinAt.getTime(),
last_leave_at: stats.lastLeaveAt.getTime(),
last_join_at_ms: stats.lastJoinAt.getTime(),
last_leave_at_ms: stats.lastLeaveAt.getTime(),
last_leave_reason: "quit",
}),
"quit",
@@ -162,7 +162,7 @@ describe("class Instance", function() {
"foo",
new PlayerStats({
join_count: 1,
last_join_at: stats.lastJoinAt.getTime(),
last_join_at_ms: stats.lastJoinAt.getTime(),
})
)
)
@@ -185,8 +185,8 @@ describe("class Instance", function() {
new PlayerStats({
join_count: 1,
online_time_ms: stats.onlineTimeMs,
last_join_at: stats.lastJoinAt.getTime(),
last_leave_at: stats.lastLeaveAt.getTime(),
last_join_at_ms: stats.lastJoinAt.getTime(),
last_leave_at_ms: stats.lastLeaveAt.getTime(),
last_leave_reason: "quit",
}),
"quit",
+1 -1
View File
@@ -214,7 +214,7 @@ describe("host/server", function() {
if (process.platform === "win32") {
this.skip();
}
server.hangTimeout = 20;
server.hangTimeoutMs = 20;
server._server = new events.EventEmitter();
server._server.kill = () => true;
server._state = "running";