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