Skip to content

[BUG] Uptime shows 60 minutes #1720

Closed
Closed
@planet36

Description

@planet36

Read the FAQ first

  • I have checked the FAQ but the issue is not covered

Description

I ran fastfetch 2.41.0 (x86_64) and I noticed my uptime had a non-normalized time.

Uptime: 4 hours, 60 mins

In function ffParseDuration (parsing.c line 203), when seconds >= 30, minutes is incremented. But this causes 59 minutes to become 60 minutes, and it's never normalized afterward.

Version used

fastfetch 2.41.0 (x86_64)

Bug prevalence

Rarely

Regression

Not sure

Installation

Package manager

Package manager

pacman

Screenshots

No response

Configuration

System information

Not applicable

Features built-in

threads
vulkan
wayland
xcb-randr
xrandr
drm
drm_amdgpu
gio
dconf
dbus
imagemagick7
chafa
zlib
xfconf
opencl
libpulse
libddcutil
libelf
libzfs
Directx Headers
System yyjson
linux/videodev2
linux/wireless

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions