[PR #85] [MERGED] fix(api/device): use recent timestamp for GPU process utilization query #153

Closed
opened 2026-05-05 03:26:50 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/85
Author: @XuehaiPan
Created: 8/3/2023
Status: Merged
Merged: 8/4/2023
Merged by: @XuehaiPan

Base: mainHead: process-utilization


📝 Commits (5)

  • e776dae fix(api/device): remove extra timestamp margin for GPU process utilization
  • e41e0ea fix(api/device): use current epoch timestamp for process utilization
  • b99d905 feat(api/process): update GPU status for gone processes
  • 27d22ca fix(api/device): add extra 0.25s timestamp margin for GPU process utilization
  • eacefb0 docs(CHANGELOG): update changelog

📊 Changes

3 files changed (+20 additions, -7 deletions)

View changed files

📝 CHANGELOG.md (+1 -1)
📝 nvitop/api/device.py (+6 -5)
📝 nvitop/api/process.py (+13 -1)

📄 Description

Issue Type

  • Bug fix

Description

Remove the extra 2s timestamp margin for GPU process utilization. Such a margin may cause the API returns the average utilization rather than the instant values.

Motivation and Context

Resolves #83


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/85 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 8/3/2023 **Status:** ✅ Merged **Merged:** 8/4/2023 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `process-utilization` --- ### 📝 Commits (5) - [`e776dae`](https://github.com/XuehaiPan/nvitop/commit/e776dae3a3bf0f1d54b694ee37d0e6dcd05595ea) fix(api/device): remove extra timestamp margin for GPU process utilization - [`e41e0ea`](https://github.com/XuehaiPan/nvitop/commit/e41e0ea701e959eb0aa3c8764169b8a5ca0619a0) fix(api/device): use current epoch timestamp for process utilization - [`b99d905`](https://github.com/XuehaiPan/nvitop/commit/b99d90544d1e67fe55fa480d007690850339a199) feat(api/process): update GPU status for gone processes - [`27d22ca`](https://github.com/XuehaiPan/nvitop/commit/27d22cae37408644d29c4b97cc79eef5233654a0) fix(api/device): add extra 0.25s timestamp margin for GPU process utilization - [`eacefb0`](https://github.com/XuehaiPan/nvitop/commit/eacefb05f95eb0e74c22d58dfa505891710aa733) docs(CHANGELOG): update changelog ### 📊 Changes **3 files changed** (+20 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -1) 📝 `nvitop/api/device.py` (+6 -5) 📝 `nvitop/api/process.py` (+13 -1) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Bug fix #### Description <!-- Describe the changes in detail --> Remove the extra 2s timestamp margin for GPU process utilization. Such a margin may cause the API returns the average utilization rather than the instant values. #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Resolves #83 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:26:50 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#153
No description provided.