mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 23:14:53 +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
|
||||
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();
|
||||
}
|
||||
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();
|
||||
}
|
||||
return json;
|
||||
|
||||
Reference in new issue
Block a user