Skip to content
Snippets Groups Projects
Commit ac413e74 authored by rswindell's avatar rswindell
Browse files

Don't 0-pad the hour as it does butt-up against the user's location.

Renamed the option noone_logged_on_fmt to nobody_logged_on_fmt (grammar).
parent 4fcf37b0
Branches
Tags
No related merge requests found
...@@ -74,7 +74,7 @@ function print(hdr, num, days_ago) ...@@ -74,7 +74,7 @@ function print(hdr, num, days_ago)
var date = new Date(record.time * 1000); var date = new Date(record.time * 1000);
console.print(format(options.last_few_callers_fmt || console.print(format(options.last_few_callers_fmt ||
"\r\n\x01n\x01h\x01m%-3s\x01n\x01m%-6s \x01w\x01h%-25.25s \x01m%-25.25s" + "\r\n\x01n\x01h\x01m%-3s\x01n\x01m%-6s \x01w\x01h%-25.25s \x01m%-25.25s" +
"\x01n\x01m%02u:%02u \x01h%-8.8s \x01n\x01m%3d" "\x01n\x01m%2u:%02u \x01h%-8.8s \x01n\x01m%3d"
,record.total ? record.node : "" ,record.total ? record.node : ""
,record.total ? record.total : "" ,record.total ? record.total : ""
,record.user.alias ,record.user.alias
...@@ -96,6 +96,6 @@ if(argv.indexOf('-l') >= 0) { // Last few callers? ...@@ -96,6 +96,6 @@ if(argv.indexOf('-l') >= 0) { // Last few callers?
} else { } else {
if(!this.print(format(options.logons_header_fmt || "\x01n\x01h\x01y\r\nLogons %s:\r\n", day) if(!this.print(format(options.logons_header_fmt || "\x01n\x01h\x01y\r\nLogons %s:\r\n", day)
,/* all: */0, days_ago)) ,/* all: */0, days_ago))
console.print(format(options.noone_logged_on_fmt || "\r\nNo one logged on %s.", day.toLowerCase())); console.print(format(options.nobody_logged_on_fmt || "\r\nNo one logged on %s.", day.toLowerCase()));
console.crlf(); console.crlf();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment