diff --git a/include/struct.h b/include/struct.h index 092e5c190..a14d86493 100644 --- a/include/struct.h +++ b/include/struct.h @@ -2007,7 +2007,7 @@ struct Link { } value; }; -#define IsInvalidChannelTS(x) ((x) < 750000) /**< Invalid channel creation time */ +#define IsInvalidChannelTS(x) ((x) <= 1000000) /**< Invalid channel creation time */ /** * @addtogroup CommonStructs diff --git a/src/modules/mode.c b/src/modules/mode.c index 1160b48d6..98f7ffe98 100644 --- a/src/modules/mode.c +++ b/src/modules/mode.c @@ -987,8 +987,8 @@ process_listmode: v = atoi(param); if (v < 0) v = 1; /* setting +l with a negative number makes no sense */ - if (v > 1000000000) - v = 1000000000; /* some kind of limit, 1 billion (mrah...) */ + if (v > 1000000) + v = 1000000; /* some kind of limit, 1 million (mrah...) */ if (channel->mode.limit == v) break; channel->mode.limit = v;