8000 fix stat ERR_OUT_OF_RANGE error by windard · Pull Request #188 · skygragon/leetcode-cli · GitHub
[go: up one dir, main page]

Skip to content

fix stat ERR_OUT_OF_RANGE error #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix stat ERR_OUT_OF_RANGE error
  • Loading branch information
windard committed Oct 24, 2019
commit 5777622e59a0c52f1765dc915ce474edecfde724
2 changes: 1 addition & 1 deletion lib/commands/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function showCal(problems) {
const idx = now.diff(d, 'days');

const j = (N_WEEKS - idx / N_WEEKDAYS + 1) * 2;
if (j >= 0) buf.write(MONTHS[d.month()], j);
if (j >= 0) buf.write(MONTHS[d.month()], j | 0);
}
log.printf('%7s%s', ' ', buf.toString());

Expand Down
0