Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
xosview
xosview-1.8.2-float-conv.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xosview-1.8.2-float-conv.patch of Package xosview
linux/swapmeter.cc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Index: linux/swapmeter.cc =================================================================== --- linux/swapmeter.cc.orig 2005-11-11 12:45:56.000000000 +0100 +++ linux/swapmeter.cc 2005-11-27 02:10:35.000000000 +0100 @@ -64,9 +64,9 @@ void SwapMeter::getswapinfo( void ){ unit = (sinfo.mem_unit ? sinfo.mem_unit : 1); - total_ = sinfo.totalswap * unit; - fields_[0] = (sinfo.totalswap - sinfo.freeswap) * unit; - fields_[1] = sinfo.freeswap * unit; + total_ = 1.0 * sinfo.totalswap * unit; + fields_[0] = 1.0 * (sinfo.totalswap - sinfo.freeswap) * unit; + fields_[1] = 1.0 * sinfo.freeswap * unit; if ( total_ == 0 ){ total_ = 1;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor