|
@@ -11,7 +11,7 @@ from decimal import Decimal
|
|
|
class RealtimeControlConfig:
|
|
class RealtimeControlConfig:
|
|
|
start_hour: int = 7
|
|
start_hour: int = 7
|
|
|
stop_hour: int = 21
|
|
stop_hour: int = 21
|
|
|
- poll_seconds: int = 300
|
|
|
|
|
|
|
+ poll_seconds: int = 600
|
|
|
high_cpm: Decimal = Decimal("250")
|
|
high_cpm: Decimal = Decimal("250")
|
|
|
low_cpm: Decimal = Decimal("190")
|
|
low_cpm: Decimal = Decimal("190")
|
|
|
bid_up_ratio: Decimal = Decimal("1.25")
|
|
bid_up_ratio: Decimal = Decimal("1.25")
|
|
@@ -24,7 +24,7 @@ class RealtimeControlConfig:
|
|
|
config = cls(
|
|
config = cls(
|
|
|
start_hour=int(os.getenv("RTC_START_HOUR", "7")),
|
|
start_hour=int(os.getenv("RTC_START_HOUR", "7")),
|
|
|
stop_hour=int(os.getenv("RTC_STOP_HOUR", "21")),
|
|
stop_hour=int(os.getenv("RTC_STOP_HOUR", "21")),
|
|
|
- poll_seconds=int(os.getenv("RTC_POLL_SECONDS", "300")),
|
|
|
|
|
|
|
+ poll_seconds=int(os.getenv("RTC_POLL_SECONDS", "600")),
|
|
|
high_cpm=Decimal(os.getenv("RTC_HIGH_CPM", "250")),
|
|
high_cpm=Decimal(os.getenv("RTC_HIGH_CPM", "250")),
|
|
|
low_cpm=Decimal(os.getenv("RTC_LOW_CPM", "190")),
|
|
low_cpm=Decimal(os.getenv("RTC_LOW_CPM", "190")),
|
|
|
bid_up_ratio=Decimal(os.getenv("RTC_BID_UP_RATIO", "1.25")),
|
|
bid_up_ratio=Decimal(os.getenv("RTC_BID_UP_RATIO", "1.25")),
|