aboutsummaryrefslogtreecommitdiff
path: root/commands/info.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-01-10 21:36:59 +0100
committerMinteck <contact@minteck.org>2022-01-10 21:36:59 +0100
commita9acf61916520199494f1ccfd32836f9d88b35ee (patch)
tree1b8a1e267eaaa7af819640f1f8ee3926bb436894 /commands/info.js
parent00f10bd80867313272697b665b3d79da345dc66a (diff)
downloadponyfind-a9acf61916520199494f1ccfd32836f9d88b35ee.tar.gz
ponyfind-a9acf61916520199494f1ccfd32836f9d88b35ee.tar.bz2
ponyfind-a9acf61916520199494f1ccfd32836f9d88b35ee.zip
Commit
Diffstat (limited to 'commands/info.js')
-rw-r--r--commands/info.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/info.js b/commands/info.js
index d6d25b0..d8335e4 100644
--- a/commands/info.js
+++ b/commands/info.js
@@ -26,8 +26,8 @@ function bytesToPretty(bytes) {
function secondsToPretty(seconds) {
if (seconds > 60) {
if (seconds > 3600) {
- if (seconds > 216000) {
- return Math.floor(seconds / 216000) + " day" + (Math.floor(seconds / 216000) > 1 ? "s" : "");
+ if (seconds > 86400) {
+ return Math.floor(seconds / 86400) + " day" + (Math.floor(seconds / 216000) > 1 ? "s" : "");
} else {
return Math.floor(seconds / 3600) + " hour" + (Math.floor(seconds / 3600) > 1 ? "s" : "");
}