Skip to content

Commit 78b7e86

Browse files
author
Thidas Senavirathna
committed
fixed compiling issue
1 parent dc11096 commit 78b7e86

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/com/mycmd/commands/UptimeCommand.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
import com.mycmd.Command;
44
import com.mycmd.ShellContext;
55

6+
import java.io.IOException;
7+
import java.time.Duration;
8+
import java.time.Instant;
9+
610
/**
711
* Displays how long the shell has been running since startup.
812
*
@@ -13,10 +17,7 @@
1317
* Usage:
1418
* - uptime : Display shell uptime in hours, minutes, and seconds
1519
*
16-
* The output format shows the uptime as "Up since Xh Ym Zs" where:
17-
* - X is hours
18-
* - Y is minutes
19-
* - Z is seconds
20+
* The output format shows the uptime as "Uptime: Xh Ym Zs" or with days if applicable.
2021
*
2122
* This is useful for monitoring how long a shell session has been active.
2223
*/
@@ -44,7 +45,7 @@ public void execute(String[] args, ShellContext context) throws IOException {
4445

4546
@Override
4647
public String description() {
47-
return "Display how long the shell has been running.";
48+
return "Display how long the shell has been running since startup.";
4849
}
4950

5051
@Override

0 commit comments

Comments
 (0)