<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>453854</bug_id>
          
          <creation_ts>2022-05-15 20:36:20 +0000</creation_ts>
          <short_desc>Please follow BinaryUnitDialect, appropriately</short_desc>
          <delta_ts>2026-02-25 02:54:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>ksystemstats</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=364321</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>HI</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>57240</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Erik Quaeghebeur">bugs.kde.org</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>4wy78uwh</cc>
    
    <cc>ahiemstra</cc>
    
    <cc>andreas_nordal_4</cc>
    
    <cc>daninshed</cc>
    
    <cc>dave</cc>
    
    <cc>jrb3218</cc>
    
    <cc>kde</cc>
    
    <cc>kde_bugtracker.3o1kp</cc>
    
    <cc>mtjhrj</cc>
    
    <cc>nate</cc>
    
    <cc>plasma-bugs-null</cc>
    
    <cc>vmelkon</cc>
    
    <cc>wanderer510</cc>
    
    <cc>zakhar.nasimov</cc>
    
    <cc>zdenek.koprivik</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/libksysguard/-/commit/9ddde2299063fdbf941858c46eef5acafc20103a</cf_commitlink>
          <cf_versionfixedin>6.7.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2123636</commentid>
    <comment_count>0</comment_count>
    <who name="Erik Quaeghebeur">bugs.kde.org</who>
    <bug_when>2022-05-15 20:36:20 +0000</bug_when>
    <thetext>SUMMARY
The system monitor does not seem to follow the BinaryUnitDialect config option. Likely it is just a matter of replacing some function with some higher-level ones, as other apps do the right thing (e.g., Krusader).

STEPS TO REPRODUCE
1. Set BinaryUnitDialect=2 in [Locale] section of $KDEHOME/.config/kdeglobals (setting to metric/SI instead of IEC)
2. Start system monitor
3. Look at some of the stats showing

OBSERVED RESULT
IEC formatting is used everywhere instead of metric

EXPECTED RESULT
Metric formatting is used everywhere it is appropriate (I think the only place IEC might make sense is for memory size and usage when a preference for metric is expressed)

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
The BinaryUnitDialect config option is described in Bug 57240. This option is for now still without a GUI, but Bug 364321 makes it clear this is about to change. So apps like the system monitor should be made ready to follow BinaryUnitDialect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124022</commentid>
    <comment_count>1</comment_count>
    <who name="">vmelkon</who>
    <bug_when>2022-05-17 03:37:30 +0000</bug_when>
    <thetext>I have tested this on Kubuntu 22.04
I can confirm that I have the same result.

KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

I have tried BinaryUnitDialect=2 and BinaryUnitDialect=1.
In both cases, KSysGuard just ignores it and keeps on showing kiB, MiB, GiB, TiB.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201353</commentid>
    <comment_count>2</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-01-24 18:28:00 +0000</bug_when>
    <thetext>*** Bug 464604 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201680</commentid>
    <comment_count>3</comment_count>
    <who name="David Redondo">kde</who>
    <bug_when>2023-01-25 10:22:48 +0000</bug_when>
    <thetext>There is no UI for this setting and seems it is not even global, only KIO reads it https://lxr.kde.org/search?%21v=kf5-qt5&amp;_filestring=&amp;_string=%22BinaryUnitDialect%22</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2201733</commentid>
    <comment_count>4</comment_count>
    <who name="Erik Quaeghebeur">bugs.kde.org</who>
    <bug_when>2023-01-25 12:11:17 +0000</bug_when>
    <thetext>(In reply to David Redondo from comment #3)
&gt; There is no UI for this setting

That is the topic of the linked bug report: https://bugs.kde.org/show_bug.cgi?id=364321
This is a chicken-and-egg problem: as long as applications to not support it, the value of a GUI is limited and developers will not find it urgent, and application developers will point to the lack of a GUI to say that it is not urgent

&gt; it is not even global, only KIO reads it

I cannot comment on this. I guess that means it is harder to implement? AFAIU previously, it was just a matter of using existing framework functions that do support it. Then perhaps a new bug report is in order to request for better support for this in a framework.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2216369</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-03-14 19:57:35 +0000</bug_when>
    <thetext>*** Bug 467317 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2231033</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-05-16 23:48:32 +0000</bug_when>
    <thetext>*** Bug 391596 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2242070</commentid>
    <comment_count>7</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-07-21 21:34:56 +0000</bug_when>
    <thetext>&gt; AFAIU previously, it was just a matter of using existing framework functions that do support it
That&apos;s correct, yes. The frameworks-provided function has been fixed to read the setting properly; see https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/352. Now System Monitor just needs to use it and then this will get fixed automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2250680</commentid>
    <comment_count>8</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2023-09-05 19:47:49 +0000</bug_when>
    <thetext>*** Bug 474155 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2252427</commentid>
    <comment_count>9</comment_count>
    <who name="Andreas Nordal">andreas_nordal_4</who>
    <bug_when>2023-09-11 22:40:31 +0000</bug_when>
    <thetext>Is it a good idea to use the same configuration for everything?

There may be opposite conventions to follow:
For network speed, I would even suggest that if the configuration isn&apos;t SI, the configuration is wrong.
But opposite for memory and partition sizes.

Not that I would argue for more options. Rather that getting the default right in each case without not making the user choose between two wrongs is more important.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2253383</commentid>
    <comment_count>10</comment_count>
    <who name="">vmelkon</who>
    <bug_when>2023-09-16 03:38:00 +0000</bug_when>
    <thetext>Good idea.

&quot;Not that I would argue for more options. Rather that getting the default right in each case without not making the user choose between two wrongs is more important.&quot;

&gt;&gt;I would argue for more options. Nothing wrong with more options, as long as it is documented somewhere. After all, Microsoft documents their registry keys and someone publishes 500 page books on Windows Server.
If Microsoft can program a feature, then so can anyone.
(In this case, Windows doesn&apos;t have such features).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2387771</commentid>
    <comment_count>11</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-08 16:42:09 +0000</bug_when>
    <thetext>*** Bug 498388 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2391988</commentid>
    <comment_count>12</comment_count>
    <who name="Arjen Hiemstra">ahiemstra</who>
    <bug_when>2025-01-23 14:37:56 +0000</bug_when>
    <thetext>*** Bug 497160 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2391990</commentid>
    <comment_count>13</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-01-23 14:38:38 +0000</bug_when>
    <thetext>*** Bug 494955 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2405029</commentid>
    <comment_count>14</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-03-05 17:24:44 +0000</bug_when>
    <thetext>*** Bug 501065 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2447006</commentid>
    <comment_count>15</comment_count>
    <who name="KOPRajs">zdenek.koprivik</who>
    <bug_when>2025-08-13 09:54:25 +0000</bug_when>
    <thetext>There is now UI for setting this option in System Settings, but System Monitor still ignores it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2487759</commentid>
    <comment_count>16</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-01-23 15:49:19 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/libksysguard/-/merge_requests/460</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2496277</commentid>
    <comment_count>17</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-02-19 15:43:32 +0000</bug_when>
    <thetext>Git commit 9ddde2299063fdbf941858c46eef5acafc20103a by Nate Graham, on behalf of David Redondo.
Committed on 19/02/2026 at 15:43.
Pushed by ngraham into branch &apos;master&apos;.

Follow the user preference when formatting byte values

Use the binary formatting option selected by the user in system
settings.
FIXED-IN: 6.7

M  +1    -0    formatter/CMakeLists.txt
M  +109  -42   formatter/Formatter.cpp

https://invent.kde.org/plasma/libksysguard/-/commit/9ddde2299063fdbf941858c46eef5acafc20103a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2498192</commentid>
    <comment_count>18</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2026-02-25 02:54:45 +0000</bug_when>
    <thetext>*** Bug 475459 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>