Hisham Muhammad
d34645f8f1
Array entries have been oddly flipped here for years.
10 years ago
Christian Hesse
bf456972b7
kilobytes is the smallest unit and never has precision
...
Signed-off-by: Christian Hesse <mail@eworm.de>
11 years ago
Hisham Muhammad
bdadd45a88
Fix indentation.
11 years ago
Christian Hesse
6f58fbc5dd
make units more dynamic
...
Signed-off-by: Christian Hesse <mail@eworm.de>
11 years ago
Christian Hesse
93b811a051
use ASCII blank even for graphical meter in UTF-8 mode
...
If the terminal has no font with braille characters we see... Nothing
useful. Use an ASCII blank at least, so we have an idea about what's
going on.
11 years ago
Hisham Muhammad
4597014ea3
Standardize variable name.
11 years ago
Christian Hesse
a2a34e89a1
simplify Meter loop
...
* Use MIN() and MAX() to make sure values are inside bounds. This should
fix an issue where Meters were missing dots at the bottom.
* Remove variable 'level' and calculate on the fly.
11 years ago
Christian Hesse
d8e23bb084
remove UTF-8 code when compiling with --disable-unicode
11 years ago
Christian Hesse
9e67b6585e
make arrays one dimensional
...
With more dimensional arrays we have to define the array size. Use
one dimensional arrays to be more flexible.
Additionally this allows to shrink array size for ASCII.
11 years ago
David Hunt
5e602f18d5
Rename String to StringUtils.
...
Fixes building on case-insensitive filesystems where String.h gets confused with <string.h>.
From d734dacea0a10d0465dad4e95b3421511e7da112 Mon Sep 17 00:00:00 2001
From: David Hunt <dhunt@iolanthe.attlocal.net>
Date: Sat, 11 Jul 2015 20:56:31 -0500
Subject: [PATCH 1/8] Rename String to StringUtils
11 years ago
Hisham Muhammad
9ff5d2b243
Fix saving of header states, motion in Setup screen.
11 years ago
Hisham Muhammad
14a177800b
Remove spurious UTF-8 char from ASCII mode.
11 years ago
Hisham Muhammad
574c3decb5
Move graph according to configured CRT_delay.
11 years ago
Hisham Muhammad
14bd77c5f4
Add longer descriptions to available meters.
11 years ago
Hisham Muhammad
c2108e5a48
Another mega-patch for the refactoring process.
...
Kinda runs, but functionality from the original main loop
is still missing. Patience.
11 years ago
Hisham Muhammad
3383d8e556
Sorry about the mega-patch.
...
This is a work-in-progress, code is currently broken.
(Some actions, and notably, the header, are missing.)
11 years ago
Hisham Muhammad
357e7a3243
Move UptimeMeter into platform-dependent area.
...
Set up environment to move other meters.
11 years ago
Hisham Muhammad
2bf8754bc2
Remove useless assignment.
12 years ago
Hisham Muhammad
6d90e58c01
alignment improvements
12 years ago
Hisham Muhammad
76a715ee8c
Fix order of calloc arguments.
...
(Patch by Dawid Gajownik)
12 years ago
Hisham Muhammad
c1e0f6e17c
BUGFIX: Fix crash when adding meters and toggling detailed CPU time.
...
See https://bugzilla.redhat.com/show_bug.cgi?id=987805 for details.
(thanks to Dawid Gajownik for the detailed analysis!)
12 years ago
Hisham Muhammad
00b324bfc1
Changes in object model: separate class objects to store vtable. Also, nicer UTF-8 display of big numbers.
13 years ago
Hisham Muhammad
45f7a4fc8d
Remove old memory debugging routines. We have Valgrind nowadays.
14 years ago
Hisham Muhammad
84281bdc44
major header cleanup
14 years ago
Hisham Muhammad
7ca1081712
Mega-commit with features and tweaks for 1.0:
...
* Performance improvements
* Support for splitting CPU meters into two or four columns
(thanks to Wim Heirman)
* Switch from PLPA, which is now deprecated, to HWLOC.
* Bring back support for native Linux sched_setaffinity,
so we don't have to use HWLOC where we don't need to.
* Support for typing in user names and column fields in selection panels.
15 years ago
Hisham Muhammad
d1b1cbc757
cleanups and fixes, thanks to cppcheck and gcc -Wextra
15 years ago
Hisham Muhammad
717758409e
Fix segfault in BarMeterMode_draw() for small terminal widths
15 years ago
Hisham Muhammad
300caa076e
Tempus fugit.
15 years ago
Hisham Muhammad
bd459776a4
retain meter state when it is reinit'ed in the Setup screen
15 years ago
Hisham Muhammad
a9c0ea3753
* Option for counting CPUs from zero
...
(thanks to Sean Noonan)
* Meters update in every screen (no longer halting while on Setup, etc.)
15 years ago
Hisham Muhammad
d8e1480a27
Remove arbitrary limit from rich strings
...
Fix subtree hiding
Fix reading of CPU values in hidden threads
Fix hiding of zombie processes as kernel threads
Remove "debug proc" code
Code cleanup in processElements
16 years ago
Hisham Muhammad
a600d5a6e9
Tempus fugit.
16 years ago
Hisham Muhammad
02a30bfecd
warning fixes
16 years ago
Hisham Muhammad
6330ff3a0a
changes for htop 0.8.2
17 years ago
Hisham Muhammad
ac5cecb6fc
Option to display hostname in the meters area
17 years ago
Hisham Muhammad
11931f1bc8
ACPI Battery meter
...
contributed by Ian Hands
18 years ago
Hisham Muhammad
da23c8c5a1
Clean up headers by using 'static' whenever possible.
...
Reduces resulting code size.
18 years ago
Hisham Muhammad
8fa33dc336
Add Unicode support, enabled with the --enable-unicode
...
flag, which requires libncursesw.
Thanks to Sergej Pupykin!
18 years ago
Hisham Muhammad
dbe2670b69
Perform RichString operations by hand.
...
Avoid unnecessary operations when processing entries on ProcessList.
20 years ago
Hisham Muhammad
5d48ab8c28
Performance improvement hackathon: improve process comparison routines,
...
disable useless code in release builds such as runtime type-checking on
dynamic data structures and process fields that are not being computed,
faster(?) method for verifying the process owner (still need to ensure
correctness), don't destroy and create process objects for hidden kernel
threads over and over. Phew. I shouldn't be doing all this today, but I
could not resist.
20 years ago
Hisham Muhammad
2f1f82ee87
Updates for new version of the MakeHeader.py script.
20 years ago
Hisham Muhammad
7fe0c2b33d
Missed LoadMeter!
20 years ago
Hisham Muhammad
57a17420e0
Final fixes to make "All CPUs" the default CPU display mode.
20 years ago
Hisham Muhammad
c3d757f606
Enable "All CPUs" option
20 years ago
Hisham Muhammad
33113fe0d7
- Overhaul meters implementation;
...
- add AllCPUsMeter;
- because of that, the new .htoprc is incompatible with previous released versions.
20 years ago
Hisham Muhammad
130938f691
Fixes for header generation.
20 years ago
Hisham Muhammad
d6231bab89
Initial import.
20 years ago