"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gnu/memmeter.cc" between
xosview-1.18.tar.gz and xosview-1.19.tar.gz

About: xosview is an X Windows based system monitor (cpu, memory, swap and network usage; interrupt and serial activities; load average).

memmeter.cc  (xosview-1.18):memmeter.cc  (xosview-1.19)
skipping to change at line 55 skipping to change at line 55
void MemMeter::getmeminfo( void ){ void MemMeter::getmeminfo( void ){
kern_return_t err; kern_return_t err;
err = vm_statistics (mach_task_self(), &vmstats); err = vm_statistics (mach_task_self(), &vmstats);
if (err) { if (err) {
error (0, err, "vm_statistics"); error (0, err, "vm_statistics");
parent_->done(1); parent_->done(1);
return; return;
} }
fields_[0] = vmstats.active_count * vmstats.pagesize; fields_[0] = (double) vmstats.active_count * vmstats.pagesize;
fields_[1] = vmstats.inactive_count * vmstats.pagesize;; fields_[1] = (double) vmstats.inactive_count * vmstats.pagesize;;
fields_[2] = vmstats.wire_count * vmstats.pagesize;; fields_[2] = (double) vmstats.wire_count * vmstats.pagesize;;
fields_[3] = vmstats.free_count * vmstats.pagesize;; fields_[3] = (double) vmstats.free_count * vmstats.pagesize;;
total_ = fields_[0] + fields_[1] + fields_[2] + fields_[3]; total_ = fields_[0] + fields_[1] + fields_[2] + fields_[3];
FieldMeterDecay::setUsed (total_ - fields_[3], total_); FieldMeterDecay::setUsed (total_ - fields_[3], total_);
} }
 End of changes. 1 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS