Commit Graph

12 Commits

Author SHA1 Message Date
Landry Breuil
993ef78b81 Switch back all bzero() calls to use memset()
Even if it's uglier to use memset, bzero seems deprecated.
2018-06-03 17:56:31 +02:00
rim
8e1b48f8de Move getpwuid() from backends to gui, use getpwuid_r(), call only once on task add. (bug 14401) 2018-05-30 21:31:01 +02:00
rim
ceb5a7d347 Make pid type: GPid (bug 14401) 2018-05-30 21:28:35 +02:00
Landry Breuil
159c3c1d0c Sort the task list by pid, as we're going to use bsearch() (bug 14403) 2018-05-26 23:52:46 +02:00
rim
704411a38b Properly use float for constants where appropriate (bug 14401, bug 14403) 2018-05-26 23:51:32 +02:00
rim
2329f243fb Properly zero memory where appropriate (bug 14401, bug 14403) 2018-05-26 23:40:11 +02:00
rim
5e0fb6f4bc Use sizeof() when appropriate instead of hardcoding values (bug 14401, bug 14403) 2018-05-26 23:19:55 +02:00
Landry Breuil
96ee31879b uninitialized variable in solaris backend 2014-12-04 20:35:06 +01:00
Mike Massonnet
cfae61f98d Fix compiler warnings from Solaris implementation 2010-06-09 13:50:24 +02:00
Mike Massonnet
f929d83f37 [linux|solaris] Fix regression introduced with the “Refresh rate” option
The CPU usage computation done for the processes were broken when the
refresh rate was different than a second. The introduced fix is only
necessary for the Linux and OpenSolaris implementations.
2010-05-24 19:41:41 +02:00
Mike Massonnet
bbd591fd23 Display Swap usage in Solaris implementation
The Swap usage is retrieved through swapctl(). Also on a separate change, read
the CPU time from the nanosecs instead of ticks for increased precision.
2010-05-18 21:48:54 +02:00
Mike Massonnet
db0ab60561 Re-add Solaris implementation
Solaris support is in again however the Swap usage is missing. Older
files from the tree source have been removed.
2010-05-16 13:52:52 +02:00