@nosana/node 1.1.85-rc → 1.1.86-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/.env CHANGED
@@ -1,6 +1,6 @@
1
1
  BACKEND_SOLANA_ADDRESS=7rFPFnxjXHC2sfDy3qrDa9pEb4j49oivMuV7e8sYDPmB
2
2
  FRP_SERVER_IMAGE=registry.hub.docker.com/nosana/frpc:v1.0.45
3
- JOB_RUNTIME_IMAGE="nosana/job-runtime:v0.3.0"
3
+ JOB_RUNTIME_IMAGE="nosana/job-runtime:v0.3.1"
4
4
  GOLDEN_VM_IMAGE=https://models.nosana.io/golden-vm/cuda13-580-dev-2/golden-vm-cuda13-580-dev-2.qcow2
5
5
  RESOURCE_MANAGER_IMAGE=registry.hub.docker.com/nosana/resource-manager:v1.1.19
6
6
  FRP_SERVER_PORT=7000
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.85-rc",
3
+ "version": "1.1.86-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Converts seconds into a formatted time string (e.g., "1h 23m 45s", "5m 30s", "45s")
2
+ * Converts seconds into a formatted time string (e.g., "2d 3h 4m 5s", "1h 23m 45s", "5m 30s", "45s")
3
3
  * @param seconds - The number of seconds to format
4
- * @returns Formatted time string with hours, minutes, and/or seconds
4
+ * @returns Formatted time string with days, hours, minutes, and/or seconds
5
5
  */
6
6
  export declare function formatTime(seconds: number): string;
@@ -1,18 +1,22 @@
1
1
  /**
2
- * Converts seconds into a formatted time string (e.g., "1h 23m 45s", "5m 30s", "45s")
2
+ * Converts seconds into a formatted time string (e.g., "2d 3h 4m 5s", "1h 23m 45s", "5m 30s", "45s")
3
3
  * @param seconds - The number of seconds to format
4
- * @returns Formatted time string with hours, minutes, and/or seconds
4
+ * @returns Formatted time string with days, hours, minutes, and/or seconds
5
5
  */
6
6
  export function formatTime(seconds) {
7
7
  const totalSeconds = Math.floor(seconds);
8
- const hours = Math.floor(totalSeconds / 3600);
8
+ const days = Math.floor(totalSeconds / 86400);
9
+ const hours = Math.floor((totalSeconds % 86400) / 3600);
9
10
  const minutes = Math.floor((totalSeconds % 3600) / 60);
10
11
  const secs = totalSeconds % 60;
11
12
  const parts = [];
12
- if (hours > 0) {
13
+ if (days > 0) {
14
+ parts.push(`${days}d`);
15
+ }
16
+ if (hours > 0 || days > 0) {
13
17
  parts.push(`${hours}h`);
14
18
  }
15
- if (minutes > 0 || hours > 0) {
19
+ if (minutes > 0 || hours > 0 || days > 0) {
16
20
  parts.push(`${minutes}m`);
17
21
  }
18
22
  parts.push(`${secs}s`);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.85-rc",
3
+ "version": "1.1.86-rc",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@nosana/node",
9
- "version": "1.1.85-rc",
9
+ "version": "1.1.86-rc",
10
10
  "license": "ISC",
11
11
  "workspaces": [
12
12
  "packages/*"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.85-rc",
3
+ "version": "1.1.86-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"