Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Save text buffer in Meter | Christian Göttsche | 2021-03-04 | 1 | -3/+3 |
| | |||||
* | Enable -Wformat=2 | Christian Göttsche | 2020-12-19 | 1 | -16/+13 |
| | | | | | Now that the global format variable Process_pidFormat is gone, enable the compiler warning -Wformat=2. | ||||
* | Use size_t as len type for Meter_UpdateValues | Christian Göttsche | 2020-12-06 | 1 | -1/+1 |
| | | | | Most of the time the parameter is passed to snprintf type functions | ||||
* | Make casing of N/A consistent (majority was N/A) | Benny Baumann | 2020-11-26 | 1 | -1/+1 |
| | |||||
* | Merge individual Battery.[ch] files into Platform.[ch] | Nathan Scott | 2020-11-18 | 1 | -1/+1 |
| | | | | | Small changes from review - keep headers sorted and keep local variable declarations at the top of source files. | ||||
* | Merge individual Battery.[ch] files into Platform.[ch] | Nathan Scott | 2020-11-18 | 1 | -2/+2 |
| | | | | | Consistent with everything else involving platform-specific calls from core htop code. | ||||
* | Spacing around operators | Benny Baumann | 2020-11-02 | 1 | -1/+1 |
| | |||||
* | Make all required includes explicit | Benny Baumann | 2020-10-18 | 1 | -6/+3 |
| | | | | Information as seen by IWYU 0.12 + clang 9 on Linux | ||||
* | Rename StringUtils.[ch] to XUtils.[ch] | Benny Baumann | 2020-10-16 | 1 | -1/+1 |
| | |||||
* | Mark Object instances const | Christian Göttsche | 2020-10-07 | 1 | -1/+1 |
| | |||||
* | Update License consistently to GPLv2 as per COPYING file | Daniel Lange | 2020-10-05 | 1 | -1/+1 |
| | |||||
* | Drop redundant return statements | Christian Göttsche | 2020-09-29 | 1 | -2/+0 |
| | |||||
* | Covert Meter attributes to file-local constant arrays | Christian Göttsche | 2020-09-29 | 1 | -1/+1 |
| | |||||
* | Update battery API to use NAN on error | Benny Baumann | 2020-09-24 | 1 | -2/+3 |
| | |||||
* | Axe automated header generation. | Zev Weiss | 2020-09-03 | 1 | -9/+0 |
| | | | | | | | | | | | | | | Reasoning: - implementation was unsound -- broke down when I added a fairly basic macro definition expanding to a struct initializer in a *.c file. - made it way too easy (e.g. via otherwise totally innocuous git commands) to end up with timestamps such that it always ran MakeHeader.py but never used its output, leading to overbuild noise when running what should be a null 'make'. - but mostly: it's just an awkward way of dealing with C code. | ||||
* | Clean up existing whitespace | Daniel Flanagan | 2019-10-31 | 1 | -1/+1 |
| | |||||
* | Security review: check results of snprintf. | Hisham Muhammad | 2017-07-27 | 1 | -4/+4 |
| | | | | | Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does. | ||||
* | Rename Meter.setValues() functions to updateValues() | Explorer09 | 2016-05-04 | 1 | -2/+2 |
| | | | | | | | | | | | | Rationale (copied from htop issue #471): The function name "setValues" is misleading. For most OOP (object- oriented programming) contexts, setXXX functions mean they will change some member variables of an object into something specified in function arguments. But in the *Meter_setValues() case, the new values are not from the arguments, but from a hard-coded source. The caller is not supposed to change the values[] to anything it likes, but rather to "update" the values from the source. Hence, updateValues is a better name for this family of functions. | ||||
* | Explicit "maxItems" property of meters | Explorer09 | 2016-03-11 | 1 | -0/+1 |
| | | | | | | | | | Two changes in this commit: - All meters now explicitly specify "maxItems" property, even for just 1 item. (Exception is "container" CPU meter classes, which use CUSTOM_METERMODE.) - "maxItems" being 0 is now allowed. This will let bar meters and graph meters render an empty meter. | ||||
* | Rename String to StringUtils. | David Hunt | 2015-08-19 | 1 | -1/+1 |
| | | | | | | | | | 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 | ||||
* | Merge branch 'master' into wip | Hisham Muhammad | 2015-03-16 | 1 | -0/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: Process.c Process.h linux/LinuxProcess.c linux/LinuxProcess.h linux/LinuxProcessList.c unsupported/Platform.c unsupported/Platform.h | ||||
| * | Fix allocation of processes. Closes #166. | Hisham Muhammad | 2015-02-23 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | Conflicts: Process.c Process.h ProcessList.c ScreenManager.c linux/LinuxProcessList.c | ||||
* | | Another mega-patch for the refactoring process. | Hisham Muhammad | 2015-01-23 | 1 | -2/+2 |
|/ | | | | | Kinda runs, but functionality from the original main loop is still missing. Patience. | ||||
* | Move platform-dependent parts of Linux battery meter. | Hisham Muhammad | 2014-11-27 | 1 | -266/+12 |
| | |||||
* | More sanity checks. | Hisham Muhammad | 2014-04-24 | 1 | -2/+3 |
| | |||||
* | Make static analyzers happy. | Hisham Muhammad | 2014-04-24 | 1 | -8/+8 |
| | |||||
* | Oops, fix use of memset. | Hisham Muhammad | 2014-04-24 | 1 | -1/+1 |
| | |||||
* | Fix array limit. | Hisham Muhammad | 2014-04-24 | 1 | -3/+4 |
| | |||||
* | Remove useless test. | Hisham Muhammad | 2014-04-24 | 1 | -2/+1 |
| | |||||
* | Refactor and fix resource leaks. | Hisham Muhammad | 2014-04-22 | 1 | -127/+119 |
| | |||||
* | BUGFIX: Fix crash when adding meters and toggling detailed CPU time. | Hisham Muhammad | 2014-01-16 | 1 | -1/+0 |
| | | | | | See https://bugzilla.redhat.com/show_bug.cgi?id=987805 for details. (thanks to Dawid Gajownik for the detailed analysis!) | ||||
* | Changes in object model: separate class objects to store vtable. Also, nicer ↵ | Hisham Muhammad | 2012-12-05 | 1 | -3/+6 |
| | | | | UTF-8 display of big numbers. | ||||
* | minor style cleanups | Hisham Muhammad | 2012-02-02 | 1 | -24/+9 |
| | |||||
* | Remove old memory debugging routines. We have Valgrind nowadays. | Hisham Muhammad | 2011-12-26 | 1 | -1/+0 |
| | |||||
* | major header cleanup | Hisham Muhammad | 2011-12-26 | 1 | -6/+12 |
| | |||||
* | cleanups and fixes, thanks to cppcheck and gcc -Wextra | Hisham Muhammad | 2011-10-25 | 1 | -2/+5 |
| | |||||
* | Tempus fugit. | Hisham Muhammad | 2011-05-26 | 1 | -1/+1 |
| | |||||
* | Improve battery meter support (thanks to Richard W.) Closes #3063541. | Hisham Muhammad | 2010-11-20 | 1 | -3/+22 |
| | |||||
* | Tempus fugit. | Hisham Muhammad | 2010-02-25 | 1 | -1/+1 |
| | |||||
* | warning fixes | Hisham Muhammad | 2010-02-25 | 1 | -5/+5 |
| | |||||
* | minor tweaks by David Weber | Hisham Muhammad | 2010-02-22 | 1 | -3/+1 |
| | |||||
* | don't use unbounded operations | Hisham Muhammad | 2009-06-02 | 1 | -4/+4 |
| | |||||
* | updated battery meter code from Ian Hands, slightly tweaked | Hisham Muhammad | 2009-04-27 | 1 | -57/+247 |
| | |||||
* | ACPI Battery meter | Hisham Muhammad | 2008-09-23 | 1 | -0/+141 |
contributed by Ian Hands |