Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
filipgolem committed Jul 1, 2021
1 parent 39ad47c commit 44cda7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yajsapi/package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type RepoOpts = {
image_hash: string;
min_mem_gib: number;
min_storage_gib: number;
min_cpu_threads?: number;
min_available_logical_cpu_cores?: number;
};

export class Constraints {
Expand Down
4 changes: 2 additions & 2 deletions yajsapi/package/vm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function repo({
image_hash,
min_mem_gib = 0.5,
min_storage_gib = 2.0,
min_cpu_threads = 1,
min_available_logical_cpu_cores = 1,
}: RepoOpts): Promise<Package> {
/*
Builds reference to a demand decorator.
Expand All @@ -37,6 +37,6 @@ export async function repo({
return new VmPackage({
repo_url: await resolve_repo_srv({repo_srv: DEFAULT_REPO_SRV}),
image_hash,
constraints: new _VmConstrains(min_mem_gib, min_storage_gib, min_cpu_threads),
constraints: new _VmConstrains(min_mem_gib, min_storage_gib, min_available_logical_cpu_cores),
});
}

0 comments on commit 44cda7d

Please sign in to comment.