mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 04:04:35 +03:00
Move UptimeMeter into platform-dependent area.
Set up environment to move other meters.
This commit is contained in:
3
Header.c
3
Header.c
@ -9,6 +9,7 @@ in the source distribution for its full text.
|
||||
|
||||
#include "CRT.h"
|
||||
#include "String.h"
|
||||
#include "Platform.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
@ -66,7 +67,7 @@ void Header_createMeter(Header* this, char* name, HeaderSide side) {
|
||||
if (!ok) param = 0;
|
||||
*paren = '\0';
|
||||
}
|
||||
for (MeterClass** type = Meter_types; *type; type++) {
|
||||
for (MeterClass** type = Platform_meterTypes; *type; type++) {
|
||||
if (String_eq(name, (*type)->name)) {
|
||||
Vector_add(meters, Meter_new(this->pl, param, *type));
|
||||
break;
|
||||
|
Reference in New Issue
Block a user