Merge lp:~alucryd/switchboard-plug-networking/no-ifconfig into lp:~elementary-pantheon/switchboard-plug-networking/trunk
Proposed by
Maxime Gauduin
Status: | Merged |
---|---|
Approved by: | Adam Bieńkowski |
Approved revision: | 99 |
Merged at revision: | 99 |
Proposed branch: | lp:~alucryd/switchboard-plug-networking/no-ifconfig |
Merge into: | lp:~elementary-pantheon/switchboard-plug-networking/trunk |
Diff against target: |
113 lines (+25/-40) 1 file modified
src/Widgets/Device/DevicePage.vala (+25/-40) |
To merge this branch: | bzr merge lp:~alucryd/switchboard-plug-networking/no-ifconfig |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Bieńkowski (community) | Approve | ||
Viko Adi Rahmawan | Pending | ||
Review via email: mp+263825@code.launchpad.net |
This proposal supersedes a proposal from 2015-06-18.
Commit message
Read received and transferred bytes values from /sys instead of deprecated ifconfig (lp:1471375)
Description of the change
ifconfig has been deprecated for some time by most distros. This change makes the plug read the received and transferred bytes values from /sys and process them to make them look pretty.
I also fixed all whitespace issues while I was at it.
I'm open to criticism as I've never written any vala or C code before so I may have done some stupid things.
To post a comment you must log in.
You can use format_size (http:// valadoc. org/#!api= glib-2. 0/GLib. format_ size) instead of dividing by 1024