#include <sys/utsname.h>
#include <stdio.h>
#include <stdlib.h>
+#include <locale.h>
+#include <langinfo.h>
+#include <wchar.h>
#if defined(HAVE_CAIRO_H) && defined(HAVE_CAIRO_XLIB_H) && defined(WANT_CAIRO)
#define CAIRO
#define TOP_PID 3
#define TOP_MEM 4
-#define TEXT_BUFFER_SIZE (1024*4)
+#define TEXT_BUFFER_SIZE 1024
#ifdef METAR
#include <metar.h>
char *status;
int volume;
unsigned int port;
- char *host;
+ char host[128];
float progress;
int bitrate;
};
struct mpd_s mpd;
mpd_Connection *conn;
#endif
- struct process *tops[10];
+ struct process *cpu[10];
+ struct process *memu[10];
unsigned long looped;
};
int out_to_console;
-int top_sort_cpu;
+int top_cpu;
+int top_mem;
int use_spacer;