Commit Graph

1206 Commits

Author SHA1 Message Date
Christian Hesse bf456972b7 kilobytes is the smallest unit and never has precision
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-08-29 21:22:46 +02:00
Hisham Muhammad a859e9204c Merge pull request #253 from eworm-de/clock
get a useful tolal for clock meter
2015-08-29 16:18:51 -03:00
Hisham Muhammad 08392ce5d3 Merge pull request #255 from eworm-de/missing-blank
add missing blank
2015-08-29 16:14:00 -03:00
Christian Hesse ba3504fa26 add missing blank 2015-08-28 11:29:33 +02:00
Christian Hesse 804bd37dca get a useful tolal for clock meter 2015-08-28 10:15:00 +02:00
Hisham Muhammad 8a2dd83efa call for action! 2015-08-27 23:44:58 -03:00
Hisham Muhammad a008cb73a4 Updated README 2015-08-27 23:44:15 -03:00
Hisham Muhammad 7985724933 Fixes for color glitches in ncurses ABI6.
Could no longer reproduce #244 after these fixes.
2015-08-27 21:45:02 -03:00
Hisham Muhammad bdadd45a88 Fix indentation. 2015-08-27 21:37:06 -03:00
Hisham Muhammad bde3406add Merge branch 'master' of https://github.com/hishamhm/htop 2015-08-27 19:14:45 -03:00
Hisham Muhammad 3c4326b450 Don't select last item when clicking past the end of the panel. 2015-08-27 19:14:25 -03:00
Hisham Muhammad 6082db2121 Improve feedback when moving meters. 2015-08-27 19:14:13 -03:00
Hisham Muhammad f6c31eeaf5 Handle KEY_RECLICK events generated by ScreenManager 2015-08-27 18:43:22 -03:00
Hisham Muhammad f6d48c172c Merge pull request #247 from eworm-de/dual-meters-margin
remove extra space in dual meters without margins
2015-08-27 18:42:36 -03:00
Christian Hesse 696e36cb45 remove extra space in dual meters without margins 2015-08-27 22:40:35 +02:00
Hisham Muhammad f585fc9825 Merge pull request #208 from eworm-de/dynamic-unit
Dynamic unit
2015-08-27 17:33:24 -03:00
Hisham Muhammad 79356dc125 Merge pull request #250 from eworm-de/ascii-blank
use ASCII blank even for graphical meter in UTF-8 mode
2015-08-27 17:32:33 -03:00
Christian Hesse cf47f4fca1 use dynamic units for text display
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-08-27 06:13:27 +02:00
Christian Hesse 6f58fbc5dd make units more dynamic
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-08-27 06:13:27 +02:00
Hisham Muhammad f3a9f5406b Merge pull request #248 from eworm-de/wctype
include wctype.h for iswprint()
2015-08-26 23:42:32 -03:00
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.
2015-08-25 17:40:36 +02:00
Christian Hesse f10cbaa812 include wctype.h for iswprint() 2015-08-25 15:23:50 +02:00
Hisham Muhammad 8f07868fef A more portable version of the note suggested in #113.
Closes #113.
2015-08-20 02:17:11 -03:00
Hisham Muhammad 0507cd38f7 Merge pull request #43 from ErkiDerLoony/master
Fix tree view if userland threads are hidden.
2015-08-20 02:15:04 -03:00
Hisham Muhammad 544c7efa6b Omit non-printable characters with widechar curses.
Closes PR #111.
2015-08-20 02:07:24 -03:00
Hisham Muhammad c7387fac15 Fix mouse click on meters setup function bar 2015-08-20 01:34:52 -03:00
Hisham Muhammad 4597014ea3 Standardize variable name. 2015-08-20 01:27:07 -03:00
Hisham Muhammad f019f4cd9e Merge pull request #221 from eworm-de/define-array-size
use a define for graphical meter array size
2015-08-20 01:26:38 -03:00
Hisham Muhammad ea18a50091 Merge pull request #134 from jeffgarrett/pid-selection
Interpret command line PIDs as PIDs, not TIDs
2015-08-20 01:20:21 -03:00
Hisham Muhammad c9cab824e9 Extra checks. 2015-08-20 01:13:20 -03:00
Hisham Muhammad 5e4f1e46cc Reduce scope of variables. 2015-08-20 01:12:34 -03:00
Hisham Muhammad 9428010121 Make column width calculation dynamic.
Closes #228.
2015-08-20 00:32:47 -03:00
Hisham Muhammad 8bd603cb68 Make Unicode strings safe for ncurses 6 ABI.
Closes #241.
2015-08-20 00:31:48 -03:00
Hisham Muhammad 78be8201dc Add expand/collapse on additional clicks! 2015-08-19 19:09:54 -03:00
Hisham Muhammad b003636958 Support for NCurses 6.0 and mouse wheel 2015-08-19 18:55:24 -03:00
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.
2015-08-19 22:42:34 +02:00
Christian Hesse d8e23bb084 remove UTF-8 code when compiling with --disable-unicode 2015-08-19 22:42:34 +02:00
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.
2015-08-19 22:42:34 +02:00
Hisham Muhammad 3e93f9b852 Fix comment. 2015-08-19 13:58:29 -03:00
Hisham Muhammad f70649a178 Standardize indentation. 2015-08-19 13:56:46 -03:00
David Hunt 907f8298a0 CPU per process implemented 2015-08-19 13:52:57 -03:00
David Hunt 57ab332d5a Fix the thread counts 2015-08-19 13:52:38 -03:00
David Hunt 6463ea2956 Fixed CPU updating 2015-08-19 13:52:18 -03:00
David Hunt 7f3faa276a Static CPU meter 2015-08-19 13:52:04 -03:00
David Hunt 43ef703f03 Start supporting actual data 2015-08-19 13:51:49 -03:00
David Hunt 70e7c8db59 Added darwin with working battery meter 2015-08-19 13:47:26 -03:00
David Hunt feb7a01fd3 Make unsupported run 2015-08-19 13:46:41 -03:00
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
2015-08-19 13:45:20 -03:00
Hisham Muhammad f2c053a884 Add translations for desktop file.
Translations obtained by @glixx from Mandriva Linux.

Closes #227.
2015-08-12 18:05:46 -03:00
Hisham Muhammad 0ebe688d24 Avoid future confusions with how default values are set. 2015-08-12 17:29:32 -03:00