genbox 1.0.85 → 1.0.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/status.js +11 -13
- package/package.json +1 -1
package/dist/commands/status.js
CHANGED
|
@@ -391,21 +391,19 @@ exports.statusCommand = new commander_1.Command('status')
|
|
|
391
391
|
sshAvailable = true;
|
|
392
392
|
// Check if cloud-init is still running
|
|
393
393
|
if (status.includes('running')) {
|
|
394
|
-
//
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
console.log(chalk_1.default.yellow(`[INFO] Setup in progress... (elapsed: ${formatDuration(timing.total)})`));
|
|
398
|
-
}
|
|
399
|
-
else {
|
|
400
|
-
console.log(chalk_1.default.yellow('[INFO] Setup in progress...'));
|
|
401
|
-
}
|
|
394
|
+
// Use the total wait time from CLI's perspective (includes SSH wait)
|
|
395
|
+
const totalWaitSecs = Math.floor((Date.now() - startTime) / 1000);
|
|
396
|
+
console.log(chalk_1.default.yellow(`[INFO] Setup in progress... (elapsed: ${formatDuration(totalWaitSecs)})`));
|
|
402
397
|
console.log('');
|
|
403
|
-
// Show timing breakdown so far
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
console.log(
|
|
398
|
+
// Show timing breakdown so far (from server's perspective)
|
|
399
|
+
const timing = getTimingBreakdown(target.ipAddress, keyPath);
|
|
400
|
+
if (timing.sshReady !== null || timing.total !== null) {
|
|
401
|
+
console.log(chalk_1.default.blue('[INFO] === Server Timing ==='));
|
|
402
|
+
if (timing.sshReady !== null) {
|
|
403
|
+
console.log(` SSH Ready: ${formatDuration(timing.sshReady)} (from boot)`);
|
|
404
|
+
}
|
|
407
405
|
if (timing.total !== null) {
|
|
408
|
-
console.log(`
|
|
406
|
+
console.log(` Server Uptime: ${formatDuration(timing.total)}`);
|
|
409
407
|
}
|
|
410
408
|
console.log('');
|
|
411
409
|
}
|