Skip to content

Commit

Permalink
showtime
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkYu98 committed May 22, 2019
1 parent 61e9912 commit dd04947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kern/monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ mon_showtime(int argc, char **argv, struct Trapframe *tf) {

outb(0x70, 0x09);
cYear = inb(0x71);
cYear = 2000 + (cYear&0x0F) + 10*((cYear&0xF0)>>4);
cYear = (cYear&0x0F) + 10*((cYear&0xF0)>>4);

cprintf("Current time is: %d-%d-%d %d:%d:%d\n", cYear, cMonth, cDay, cHour, cMin, cSec);
return 0;
Expand Down

0 comments on commit dd04947

Please sign in to comment.