1789 in Scotland

1789
in
Scotland

Centuries:
  • 16th
  • 17th
  • 18th
  • 19th
  • 20th
Decades:
  • 1760s
  • 1770s
  • 1780s
  • 1790s
  • 1800s
See also:List of years in Scotland
Timeline of Scottish history
1789 in: Great Britain Wales Ireland Elsewhere

Events from the year 1789 in Scotland.

Incumbents

Law officers

Judiciary

Events

Births

Deaths

Sport

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.
gollark: The boundary conditions could be wrong on this query.

References

  1. Forbes, Thomas Rogers (1985). Surgeons at the Bailey: English Forensic Medicine to 1878. New Haven: Yale University Press. p. 7. ISBN 0-300-03338-9.
  2. "Notable Dates in History". The Flag in the Wind. The Scots Independent. Archived from the original on 25 January 2016. Retrieved 18 January 2016.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.