Atsuga Station
Atsuga Station (厚賀駅, Atsuga-eki) is a railway station on the Hidaka Main Line in Hidaka, Hokkaido, Japan, operated by the Hokkaido Railway Company (JR Hokkaido).
![](../I/m/Atsuga_Station.jpg)
The station building
Services on the 116 km section of the line between Mukawa and Samani have been suspended indefinitely since January 2015 due to storm damage.[1]
History
The station opened on 6 September 1924.[2] With the privatization of Japanese National Railways (JNR) on 1 April 1987, the station came under the control of JR Hokkaido.[2]
gollark: The embed says "no" on heav's website, fix?
gollark: This is not ideal. How can we use more without boring things like cryptominers?
gollark: Okay, this might fix it, pushed.
gollark: If the issue is what I think it could be, then it's accidentally dropping? data on the threshold of the rolling counter region incorrectly.
gollark: ```nimproc pollTargets(ctx: Ctx) {.async.} = for row in ctx.db.all("SELECT * FROM sites"): var (id, url, rollingTotalPings, rollingSuccessfulPings, rollingLatency, rollingDataSince) = row.unpack((int64, string, int64, int64, int64, Option[Time])) let res = await ctx.pollTarget(url) let threshold = getTime() # drop old data from rolling counters if rollingDataSince.isSome: for row in ctx.db.iterate("SELECT status, latency FROM reqs WHERE timestamp >= ? AND timestamp <= ? AND site = ?", rollingDataSince.get, threshold, id): let (statusRaw, latency) = row.unpack((int, int)) rollingTotalPings -= 1 rollingLatency -= latency if statusRaw <= 0: rollingSuccessfulPings -= 1 # add new data rollingTotalPings += 1 rollingLatency += res.latency if int(res.rtype) <= 0: rollingSuccessfulPings += 1 ctx.db.transaction: ctx.db.exec("UPDATE sites SET rc_total = ?, rc_success = ?, rc_latency = ?, rc_data_since = ? WHERE sid = ?", rollingTotalPings, rollingSuccessfulPings, rollingLatency, threshold, id) ctx.db.exec("INSERT INTO reqs (site, timestamp, status, latency) VALUES (?, ?, ?, ?)", id, getTime(), int(res.rtype), res.latency)```This is the core algorithm.
See also
References
- 日高本線・鵡川~様似間の復旧を断念 JR北海道、地元と協議へ [JR Hokkaido abandons reopening of Hidaka Main Line between Mukawa and Samani]. Traffic News (in Japanese). Japan: Mediavague Co. Ltd. 22 December 2016. Archived from the original on 22 December 2012. Retrieved 4 April 2017.
- Ishino, Tetsu, ed. (1998). 停車場変遷大辞典 国鉄・JR編 [Station Transition Directory - JNR/JR] (in Japanese). II. Japan: JTB. p. 863. ISBN 4-533-02980-9.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.