sysmon #180

Parent #93Owner #361Flags readSource hellcore/hellcore.db

Aliases: sysmon

3 verbs · 19 properties · 0 children

Verbs

VerbSpecFlagsDefinerLines
_startthis none thisrxd#1803
_finishthis none thisrxd#18040
_finishthis none thisrxd#1800

Properties

PropertyDefinerFlagsOwnerValue
help_msg#93rc#361<clear>
duration#93rc#3611.0
preemptible#93rc#361<clear>
unstoppable#93rc#361<clear>
dodge_mod#93rc#361<clear>
doing_msg#93rc#361<clear>
doing_to_msg#93rc#361<clear>
oabort_msg#93rc#361<clear>
can_parry#93rc#361<clear>
aliases#1rc#361{"sysmon"}
description#1rc#361<clear>
object_size#1r#29{0, 0}
hidden_verbs#1rc#361<clear>
phelp_msg#1rc#361<clear>
weight#1rc#361<clear>
owner_verbs#1rc#361<clear>
plural_name#1rc#361<clear>
client_image#1rc#361<clear>
listening#1rc#361<clear>

Ancestry

Ancestors (nearest first): #93 Generic Action#1 root

Children: none

Source

_start

Spec this none thisFlags rxdOwner #361Definer #180

Referenced by

none

Source

1wheel = args[1];
2wheel.cycle = wheel.cycle + 1;
3return {this.duration, 0};

_finish

Spec this none thisFlags rxdOwner #361Definer #180

Referenced by

none

Source

1wheel = args[1];
2diff = (time() - wheel.last_tick) - toint(this.duration);
3last = {@wheel.prev_values, diff};
4if (length(last) > wheel.window_size)
5last = last[2..wheel.window_size + 1];
6endif
7wheel.last_tick = time();
8wheel.prev_values = last;
9if (wheel.valid_ema)
10wheel.ema = (wheel.smoothing * tofloat(last[$ - 1])) + ((1.0 - wheel.smoothing) * wheel.ema);
11diff = wheel.ema;
12else
13if (length(last) != wheel.window_size)
14wheel:queue_action(this, {});
15return;
16endif
17diff = 0;
18for e in (last)
19diff = diff + e;
20endfor
21diff = tofloat(diff) / tofloat(length(last));
22wheel.ema = diff;
23wheel.valid_ema = 1;
24endif
25nice_diff = floatstr(diff, 3, 0);
26if (diff >= wheel.yellow)
27color = (diff >= wheel.red) ? "red" | ((diff >= wheel.orange) ? "orange" | "yellow");
28wheel:squeal();
29endif
30if (wheel.cycle >= wheel.cycle_max)
31wheel.made_noise = 0;
32if (diff < wheel.yellow)
33color = (diff >= wheel.blue) ? "brightgreen" | "green";
34else
35wheel:squeal();
36endif
37wheel.cycle = 0;
38endif
39wheel.current_reading = nice_diff;
40wheel:queue_action(this, {});

_finish

Spec this none thisFlags rxdOwner #362Definer #180

Referenced by

none

Source

No program (verb defined but unprogrammed).