After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742647 - Swap usage doesn't match figures reported by swapon -s
Swap usage doesn't match figures reported by swapon -s
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
GIT HEAD
Other Linux
: Normal normal
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
Depends on:
Blocks:
 
 
Reported: 2015-01-09 14:03 UTC by Mike Fleetwood
Modified: 2015-03-23 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make swap usage match figures reported by swapon -s (v1) (2.39 KB, patch)
2015-01-09 14:15 UTC, Mike Fleetwood
none Details | Review

Description Mike Fleetwood 2015-01-09 14:03:01 UTC
Hi Curtis,

You were right when you said the following:
(bug 708107 comment 2)
> We might get a few questions on this by users.

Turns out that I'm that user!  I've seen this a few time recently and I
realise that I expect GParted to report the same figures as swapon -s
does.

Fix to follow shortly.
Comment 1 Mike Fleetwood 2015-01-09 14:15:07 UTC
Created attachment 294157 [details] [review]
Make swap usage match figures reported by swapon -s (v1)

Hi Curtis,

Here's the patch for this.

Thanks,
Mike
Comment 2 Curtis Gedak 2015-01-28 19:29:46 UTC
Hi Mike,

I successfully tested this change on the following distros:

  debian    7
  kubuntu  12.04 LTS
  ubuntu   14.10
  opensuse 13.2

Also as a test of backward compatibility I tried Fedora 12 and was able to compile and run GParted there.  :-)

I hope you don't mind, but I took the liberty of suffixing the bug number on the first line of the commit text.

The patch in comment #1 has been committed to the git repository for inclusion in the next release of GParted.

The relevant git commit can be viewed at the following link:

Make swap usage match figures reported by swapon -s (#742647)
https://git.gnome.org/browse/gparted/commit/?id=8b45219a2daee714ecd78ab163ff01a39c05d66c

Curtis
Comment 3 Curtis Gedak 2015-03-23 17:47:03 UTC
This enhancement was included in the GParted 0.22.0 release on March 23, 2015.