Skip to content

feat: change uptime format #1748

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

Merged
merged 3 commits into from
Dec 12, 2024
Merged

feat: change uptime format #1748

merged 3 commits into from
Dec 12, 2024

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Dec 11, 2024

Closes #1067

Screenshot 2024-12-11 at 15 19 58

Stand (there is hardcoded uptime in Nodes table for demonstration): https://nda.ya.ru/t/jnRsXjJ47AKdRa

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
212 211 0 1 0

😟 No changes in tests. 😕

Bundle Size: ✅

Current: 65.88 MB | Main: 65.88 MB
Diff: +0.63 KB (0.00%)

✅ Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@artemmufazalov artemmufazalov force-pushed the 1067-change-uptime-format branch from 3b2169c to 765f264 Compare December 11, 2024 13:41
* It works well only with positive values,
* if you want to get negative formatted uptime, use some wrapper like getDowntimeFromDateFormatted
*/
export function formatUptimeInSeconds(seconds: number) {
Copy link
Contributor

Choose a reason for hiding this comment

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

lets handle somehow negative values. As for me this function should work properly with all values. And we should use it for negative and positive uptime.

@artemmufazalov artemmufazalov added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit d40aea0 Dec 12, 2024
7 checks passed
@artemmufazalov artemmufazalov deleted the 1067-change-uptime-format branch December 12, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

change how uptime is displayed
2 participants