Skip to content

Instantly share code, notes, and snippets.

/*
* Well for me it was simply easier to write it in code, but the comments should explain everything
*/
functoin deprecationRest(periodsInThreeShift, periodsInTwoShift, shiftsPerYear) {
let durability = 8; // the time until the machine is not longer useable in years (Einsatzzeit)
let depreciationRateThreeShift = 0.2; // the deprecation rate in a three shift usage (Abschreibungsrate)
let depreciationRateTwoShift = 0.1; // the deprecation rate in a two shift usage (Abschreibungsrate)
let trashValue = 3800; // the value as trash (Schrottwert)
let buyValue = 253.800; // the value to buy a new machine
@niklaszantner
niklaszantner / htop-2.0.1.patch
Created May 30, 2016 19:10
Patch for htop-2.0.1 to enable temperature sensors via lm-sensors. Simply clone htop's original repo and copy this file into the same dir and run this command: patch < htop-2.0.1.patch. Then install according to the readme of htop, or have a look here: https://github.com/nobol/htop
diff --git a/CRT.c b/CRT.c
index 3e8200b..9056961 100644
--- a/CRT.c
+++ b/CRT.c
@@ -78,6 +78,9 @@ typedef enum ColorElements_ {
UPTIME,
BATTERY,
TASKS_RUNNING,
+ TEMPERATURE_COOL,
+ TEMPERATURE_MEDIUM,