Skip to content
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

fix: parse fgpu slots to float #1759

Merged
merged 3 commits into from
Jul 4, 2023
Merged

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 added type:fix Fix features that are not working effort:easy Need to understand only a specific region of codes (good first issue, easy). area:ux UI / UX issue. urgency:3 Must be finished within a certain time frame. platform:general impact:visible This change is visible to users. field:UI / UX labels Jul 4, 2023
@agatha197 agatha197 added this to the 22.09 milestone Jul 4, 2023
@agatha197 agatha197 self-assigned this Jul 4, 2023
@github-actions github-actions bot added the size:XS ~10 LoC label Jul 4, 2023
@github-actions github-actions bot added size:S 10~30 LoC and removed size:XS ~10 LoC labels Jul 4, 2023
@@ -313,9 +313,9 @@ export default class BackendAIAgentList extends BackendAIPage {
agents[objectKey].total_cuda_gpu_percent = (agents[objectKey].used_cuda_gpu_slots_ratio * 100).toFixed(2);
}
if ('cuda.shares' in available_slots) {
agents[objectKey].cuda_fgpu_slots = parseInt(available_slots['cuda.shares']);
agents[objectKey].cuda_fgpu_slots = parseFloat(available_slots['cuda.shares']).toFixed(2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing ? before .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops thank you!

Copy link
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be okay to be merged after applying updates according to @inureyes 's comment in [here](https://github.com/lablup/backend.ai-webui/pull/1759/files#r1251734318.

@inureyes inureyes merged commit ef7f3cc into main Jul 4, 2023
3 checks passed
@inureyes inureyes deleted the bugfix/mismatch-agent-allocation branch July 4, 2023 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ux UI / UX issue. effort:easy Need to understand only a specific region of codes (good first issue, easy). field:UI / UX impact:visible This change is visible to users. platform:general size:S 10~30 LoC type:fix Fix features that are not working urgency:3 Must be finished within a certain time frame.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants