Skip to content

Commit

Permalink
Merge pull request #241 from golemfactory/fix/show-runtime-name-and-v…
Browse files Browse the repository at this point in the history
…ersion-on-scan

fix: print the runtime version on the scan
  • Loading branch information
mgordel committed Aug 30, 2024
2 parents b2ad971 + 49349e7 commit 482875b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions src/market/market.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,11 @@ marketCommand
}

const displayProposals = offersFound.map((offer) => {
const memory = offer.memory;
const storage = offer.storage;
const memory = offer.memoryGib;
const storage = offer.storageGib;
const runtimeName = offer.runtimeName;
const runtimeVersion = offer.properties["golem.runtime.version"];

return {
providerId: offer.provider.id,
providerName: offer.provider.name,
Expand All @@ -196,6 +199,8 @@ marketCommand
cpuThreads: offer.cpuThreads,
memoryGib: memory ? parseFloat(memory.toFixed(1)) : "N/A",
storageGib: storage ? parseFloat(storage.toFixed(1)) : "N/A",
runtimeName,
runtimeVersion,
};
});

Expand Down

0 comments on commit 482875b

Please sign in to comment.