[閒聊] 關於心跳秒數

看板mud_sanc (Sanctuary - 聖殿)作者 (小太保)時間13年前 (2012/06/09 17:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
/* HEARTBEAT_INTERVAL: define heartbeat interval in microseconds (us). * 1,000,000 us = 1 second. The value of this macro specifies * the frequency with which the heart_beat method will be called in * those LPC objects which have called set_heart_beat(1). * * [NOTE: if ualarm() isn't available, alarm() is used instead. Since * alarm() requires its argument in units of a second, we map 1 - 1,000,000 us * to an actual interval of one (1) second and 1,000,001 - 2,000,000 maps to * an actual interval of two (2) seconds, etc.] */ #define HEARTBEAT_INTERVAL 2000000 找了一整個下午終於找到設在哪。 嘛,基本上,因為聖殿的主機已經升級了,其實可以嚐試 看看將秒數調回原先的 1000000 甚至 500000。 那因為聖殿還有開 wiz 區,我想 wiz 區的秒數可以維持 在2000000,只調 4002 區這樣。(能不能這樣調我得研究 一下) 那總之,這個要請 nobu 幫忙,我是希望能實現 1 2 3秒 這三種基本的詠唱差異,最長就 3 秒這樣,畢竟 4 秒實 在太長了。 Laechan -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 111.253.165.202
文章代碼(AID): #1FqnCJQX (mud_sanc)
文章代碼(AID): #1FqnCJQX (mud_sanc)