mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Fix system info migration logic
This commit is contained in:
1 file changed
+2
-2
@@ -665,10 +665,10 @@ export default class Controller {
|
|||||||
if (!json.restartRequired) { // Added in 2.0.0.alpha.21
|
if (!json.restartRequired) { // Added in 2.0.0.alpha.21
|
||||||
json.restartRequired = false;
|
json.restartRequired = false;
|
||||||
}
|
}
|
||||||
if (!json.systemStartedAtMs) { // Added in 2.0.0.alpha.23
|
if (json.systemStartedAtMs === undefined) { // Added in 2.0.0.alpha.23
|
||||||
json.systemStartedAtMs = Date.now();
|
json.systemStartedAtMs = Date.now();
|
||||||
}
|
}
|
||||||
if (!json.processStartedAtMs) { // Added in 2.0.0.alpha.23
|
if (json.processStartedAtMs === undefined) { // Added in 2.0.0.alpha.23
|
||||||
json.processStartedAtMs = Date.now();
|
json.processStartedAtMs = Date.now();
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
|
|||||||
Reference in new issue
Block a user