Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#27893 - [libgtop] return zero values on read and write function

Attached to Project: Arch Linux
Opened by Milan Vedej (smeto) - Tuesday, 10 January 2012, 13:46 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Saturday, 17 November 2012, 03:54 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: libgtop return zero values on read and write function


Additional info:
* package version(s)
* config and/or log files etc.
libgtop 2.28.4-1

Steps to reproduce:
gjs:
const GTop = imports.gi.GTop;

gdisk = new GTop.glibtop_fsusage();

mount = '/'
GTop.glibtop_get_fsusage(gdisk, mount);

let blocks = gdisk.block_size;

print(blocks);

print('usage1');
print(gdisk.blocks);
print(gdisk.bfree);
print(gdisk.bavail);
print(gdisk.read);
print(gdisk.write);

sleep(5000);

GTop.glibtop_get_fsusage(gdisk, mount);
print('usage2');
print(gdisk.read);
print(gdisk.write);


function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
This task depends upon

Closed by  Gerardo Exequiel Pozzi (djgera)
Saturday, 17 November 2012, 03:54 GMT
Reason for closing:  Upstream
Comment by Jan Rüegg (rggjan) - Sunday, 22 January 2012, 08:24 GMT Comment by emmanuelux (emmanuelux) - Thursday, 01 November 2012, 22:17 GMT
this problem is solved with the patch of crobinso see https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet/issues/97#issuecomment-9308550
i have made the package libgtop-fsusage-patch in AUR in waiting : https://aur.archlinux.org/packages.php?ID=64215

Loading...