Plainfield, St. Joseph County, Indiana
Plainfield is an unincorporated community in St. Joseph County, Indiana, United States. It is along U.S. Route 20 in the north-central part of Olive Township and is bordered to the south and west by the town of New Carlisle. Via US-20, Plainfield is 13 miles (21 km) west of South Bend and 23 miles (37 km) east of Michigan City.
Plainfield, Indiana | |
---|---|
Plainfield Plainfield | |
Coordinates: 41°42′29″N 86°28′36″W | |
Country | United States |
State | Indiana |
County | St. Joseph |
Township | Olive |
Elevation | 751 ft (229 m) |
ZIP code | 46552 |
FIPS code | 18-60255[2] |
GNIS feature ID | 441218 |
Geography
Plainfield is located at 41°42′29″N 86°28′36″W.
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.
gollark: Actually, æææææ who even knows.
References
- "US Board on Geographic Names". United States Geological Survey. 2007-10-25. Retrieved 2008-01-31.
- "U.S. Census website". United States Census Bureau. Retrieved 2008-01-31.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.