This commit is contained in:
@@ -480,6 +480,8 @@ fn bot(c: &Context) {
|
||||
loop {
|
||||
c_bot(c);
|
||||
c_bot_feed(c);
|
||||
// 10秒待機してCPU使用率を抑制
|
||||
std::thread::sleep(std::time::Duration::from_secs(10));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -487,6 +489,7 @@ fn feed_watch(c: &Context) {
|
||||
refresh(c);
|
||||
loop {
|
||||
c_feed_watch(c);
|
||||
std::thread::sleep(std::time::Duration::from_secs(10));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user