Re: DNF Stats Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/12/24 14:10, Jeffrey Walton wrote:
On Sun, Dec 15, 2024 at 5:38 PM Stephen Morris
<steve.morris.au@xxxxxxxxx> wrote:
On 15/12/24 14:32, Jeffrey Walton wrote:

On Sat, Dec 14, 2024 at 6:59 PM Stephen Morris
<steve.morris.au@xxxxxxxxx> wrote:

When I run "sudo dnf upgrade", as an example, and it displays the stats for the downloads, installs and Removes (cleanup), the elapsed time column shows the times starting as negative and increasing to 0 and above, and then when the process is finished it then displays the time as the positive version.
Also when the last package cleanup is done, and more cleanup scripts are run, the message from each script overlays the message from the previous script, and when the last script is finished the word "completing" in the message has the "i" letter replaced by "!".
From my perspective these issues have only started appearing with dnf5, I never saw these with dnf4. Why are these happening now? I have shown and example of the script messages in another thread, but if we need another example I'll insert them when I get them again.

What is your question?

Why does dnf show the download, install and cleanup timings starting as negative values?
See <https://github.com/rpm-software-management/dnf5/blob/main/libdnf5-cli/progressbar/widgets/time.cpp#L40>
That code doesn't explain why they all start off as negative. Also when the time starts off at say -12s for a download and when the download of the package finished it displays the elapsed time as 0s, it didn't really take 0 seconds it potentially took 12 seconds, or, alternatively, when it starts off at say -12s and when the download finishes and it displays the elapsed time as 9s did it take 9 seconds or 21 seconds. From what I remember DNF4 started at 0 seconds and counted up as it went, hence with the code you have linked to, have they removed an initialisation step by mistake?


When displaying messages from additional scripts that are run after the last package cleanup, why do the messages from those scripts overlay each other?
No idea. Check your scripts.

When the message from the last script is shown, why does the "i" letter in the work "completing" replaced by an "!"?
No idea. Check your script.

These scripts are scripts being run as part of DNF package cleanup, they are not my scripts. Having said this though it may be a konsole issue rather than a DNF issue, as these messages are being displayed at the bottom of the konsole window.
I didn't notice this issue with this mornings process but I don't know whether the issue has been rectified or whether it was because grubby rebuilt the grub menus between running of these post-completion scripts.

regards,
Steve


Jeff

Attachment: OpenPGP_0x1EBE7C07B0F7242C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

-- 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux