The "uprecords" utility displays your total uptime, downtime, and the percentage. As it is, though, the uptime is a positive number and the downtime a negative one, and the formula: (float)totalutime / (float)(totalutime + totaldtime) * 100 ... so if totalutime is 10000s, and totaldtime 100s, the result is 10000 / (10000 + -100) * 100 = 101.01%. This patch changes totaldtime to a negative number before the calculation/display, giving me 99.3% uptime rather than >100%. Reproducible: Always Steps to Reproduce: 1. Use uptimed for a while. 2. Run "uprecords" and look at "up", "down" and "%up". Actual Results: %up can be >100%. Expected Results: Uptime is obviously never >100%.
Created attachment 242963 [details, diff] Patch to fix this display problem
Report this upstream please.