mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-25 23:35:45 +00:00
Drop tabs in source indentions
This commit is contained in:
parent
dea19b644f
commit
f8208f2173
@ -110,7 +110,7 @@ void InfoScreen_run(InfoScreen* this) {
|
||||
} else if (mevent.y == LINES - 1) {
|
||||
ch = IncSet_synthesizeEvent(this->inc, mevent.x);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (this->inc->active) {
|
||||
|
6
Macros.h
6
Macros.h
@ -4,15 +4,15 @@
|
||||
#include <assert.h> // IWYU pragma: keep
|
||||
|
||||
#ifndef MINIMUM
|
||||
#define MINIMUM(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define MINIMUM(a, b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef MAXIMUM
|
||||
#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
|
||||
#define MAXIMUM(a, b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#ifndef CLAMP
|
||||
#define CLAMP(x, low, high) (assert((low) <= (high)), ((x) > (high)) ? (high) : MAXIMUM(x, low))
|
||||
#define CLAMP(x, low, high) (assert((low) <= (high)), ((x) > (high)) ? (high) : MAXIMUM(x, low))
|
||||
#endif
|
||||
|
||||
#ifndef ARRAYSIZE
|
||||
|
@ -146,9 +146,9 @@ void ProcessList_delete(ProcessList* this) {
|
||||
|
||||
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
DarwinProcessList *dpl = (DarwinProcessList *)super;
|
||||
bool preExisting = true;
|
||||
struct kinfo_proc *ps;
|
||||
size_t count;
|
||||
bool preExisting = true;
|
||||
struct kinfo_proc *ps;
|
||||
size_t count;
|
||||
DarwinProcess *proc;
|
||||
|
||||
/* Update the global data (CPU times and VM stats) */
|
||||
|
@ -19,7 +19,7 @@ in the source distribution for its full text.
|
||||
#include "Hashtable.h"
|
||||
#include "DragonFlyBSDProcess.h"
|
||||
|
||||
#define JAIL_ERRMSGLEN 1024
|
||||
#define JAIL_ERRMSGLEN 1024
|
||||
extern char jail_errmsg[JAIL_ERRMSGLEN];
|
||||
|
||||
typedef struct CPUData_ {
|
||||
|
@ -202,12 +202,12 @@ void Platform_setSwapValues(Meter* this) {
|
||||
|
||||
void Platform_setTasksValues(Meter* this) {
|
||||
// TODO
|
||||
(void)this; // prevent unused warning
|
||||
(void)this; // prevent unused warning
|
||||
}
|
||||
|
||||
char* Platform_getProcessEnv(pid_t pid) {
|
||||
// TODO
|
||||
(void)pid; // prevent unused warning
|
||||
(void)pid; // prevent unused warning
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ in the source distribution for its full text.
|
||||
#include "zfs/ZfsArcStats.h"
|
||||
|
||||
|
||||
#define JAIL_ERRMSGLEN 1024
|
||||
#define JAIL_ERRMSGLEN 1024
|
||||
extern char jail_errmsg[JAIL_ERRMSGLEN];
|
||||
|
||||
typedef struct CPUData_ {
|
||||
|
@ -151,8 +151,8 @@ static inline void SolarisProcessList_scanMemoryInfo(ProcessList* pl) {
|
||||
|
||||
// Part 1 - physical memory
|
||||
if (spl->kd != NULL && meminfo == NULL) {
|
||||
// Look up the kstat chain just one, it never changes
|
||||
meminfo = kstat_lookup(spl->kd,"unix",0,"system_pages");
|
||||
// Look up the kstat chain just one, it never changes
|
||||
meminfo = kstat_lookup(spl->kd,"unix",0,"system_pages");
|
||||
}
|
||||
if (meminfo != NULL) { ksrphyserr = kstat_read(spl->kd,meminfo,NULL); }
|
||||
if (ksrphyserr != -1) {
|
||||
|
@ -10,8 +10,8 @@ in the source distribution for its full text.
|
||||
|
||||
#define MAXCMDLINE 255
|
||||
|
||||
#define GZONE "global "
|
||||
#define UZONE "unknown "
|
||||
#define GZONE "global "
|
||||
#define UZONE "unknown "
|
||||
|
||||
#include "zfs/ZfsArcStats.h"
|
||||
|
||||
|
@ -32,8 +32,7 @@ void openzfs_sysctl_init(ZfsArcStats *stats) {
|
||||
unsigned long long int arcSize;
|
||||
|
||||
len = sizeof(arcSize);
|
||||
if (sysctlbyname("kstat.zfs.misc.arcstats.size", &arcSize, &len,
|
||||
NULL, 0) == 0 && arcSize != 0) {
|
||||
if (sysctlbyname("kstat.zfs.misc.arcstats.size", &arcSize, &len, NULL, 0) == 0 && arcSize != 0) {
|
||||
stats->enabled = 1;
|
||||
len = 5; sysctlnametomib("kstat.zfs.misc.arcstats.size", MIB_kstat_zfs_misc_arcstats_size, &len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user