Bug 432846

Summary: Bogus (impossibly small) plasmoid sizes
Product: [Applications] Discover Reporter: Dan Dascalescu <ddascalescu+kde>
Component: KNewStuff BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version: 5.18.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.24
Attachments: Screencast

Description Dan Dascalescu 2021-02-12 10:44:04 UTC
Created attachment 135624 [details]
Screencast

SUMMARY
Some plasmoids have implausibly small sizes, e.g. "2B". (I assume B = "bytes").


STEPS TO REPRODUCE
1. Search for "crypto plasmoid"
2. Look at the "Size" field of any of the results.
Comment 1 Nate Graham 2021-02-12 16:47:56 UTC
Can confirm with current git master version. "Implausibly small" indeed. Dan, can you take a look?
Comment 2 Aleix Pol 2022-01-20 15:35:54 UTC
Git commit 83bb529c29141b2c83ebe4391ea377b02580af0e by Aleix Pol.
Committed on 20/01/2022 at 15:31.
Pushed by apol into branch 'master'.

kns: Fix resource download sizes

DownloadLinkInformation::size is in kilobytes

M  +1    -1    libdiscover/backends/KNSBackend/KNSResource.cpp

https://invent.kde.org/plasma/discover/commit/83bb529c29141b2c83ebe4391ea377b02580af0e
Comment 3 Aleix Pol 2022-01-20 15:36:09 UTC
Git commit 1e57a18352c34203ef2d70f7011878b14af2aabb by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 20/01/2022 at 15:36.
Pushed by apol into branch 'Plasma/5.24'.

kns: Fix resource download sizes

DownloadLinkInformation::size is in kilobytes


(cherry picked from commit 83bb529c29141b2c83ebe4391ea377b02580af0e)

M  +1    -1    libdiscover/backends/KNSBackend/KNSResource.cpp

https://invent.kde.org/plasma/discover/commit/1e57a18352c34203ef2d70f7011878b14af2aabb