Skip to content

Commit

Permalink
Protest icon
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Aug 16, 2024
1 parent 88866a8 commit 05a24cd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Protest/Front/deviceview.js
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ class DeviceView extends View {
firstInstantDate = Number(new DataView(firstInstantBuffer).getBigInt64(0, true));
}

if (firstInstantDate > Date.now() - DeviceView.DAY_TICKS * 15) {
if (firstInstantDate > Date.now() - DeviceView.DAY_TICKS * 28) {
let oYear = new Date().getFullYear();
let oMonth = new Date().getMonth() - 1;

Expand Down Expand Up @@ -1702,7 +1702,7 @@ class DeviceView extends View {
data.push({d:date, v:usage});
}

GenerateGraph(data, "Disk usage", "percent", "mono/hdd.svg");
GenerateGraph(data, "Disk IO", "percent", "mono/hdd.svg");
}

if (printCounterArray.length > 0) {
Expand Down
Binary file modified Protest/Front/favicon.ico
Binary file not shown.
17 changes: 9 additions & 8 deletions Protest/Front/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,15 @@ const UI = {
root.style.setProperty("--grd-taskbar", gradient);
root.style.setProperty("--grd-taskbar-rev", `linear-gradient(to bottom, ${step3}0%, ${step2}2%, ${step1}100%)`);

let ico = "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" width=\"48px\" height=\"48px\" viewBox=\"0 0 48 48\">" +
"<g fill=\"" + step2 + "\">" +
"<path d=\"M26.935,0.837h7.491l0.624,14.984l-8.24,1.873L26.935,0.837z\"/>" +
"<path d=\"M38.172,19.068l-3.871,8.866l-22.974,9.489l0.125-8.44l13.412-2.299V15.821L1.712,20.566l1.998,26.221 l42.579,0.375l-0.249-30.466L38.172,19.068z\"/>" +
"<path d=\"M4.459,0.837l0.374,16.857l8.741-1.873l-0.5-14.984H4.459z\"/>" +
"<path d=\"M15.821,0.837h7.304L24,13.2l-8.054,1.498L15.821,0.837z\"/>" +
"<path d=\"M37.672,0.837h7.367l1.249,12.986l-8.491,1.998L37.672,0.837z\"/>" +
"</g></svg>";
let ico = "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32px\" height=\"32px\" viewBox=\"0 0 32 32\">" +
"<path fill=\"#101010\" d=\"M30.345,10.59l0.453,0.333c0.291,0.214 0.463,0.553 0.466,0.913l0.152,18.538c0.002,0.308 -0.119,0.604 -0.337,0.821l-0.472,0.471c-0.217,0.216 -0.512,0.337 -0.819,0.334l-26.177,-0.23c-0.287,-0.002 -0.562,-0.112 -0.772,-0.308l-0.708,-0.661c-0.21,-0.196 -0.338,-0.463 -0.36,-0.75l-1.183,-15.531c-0.022,-0.278 0.059,-0.554 0.227,-0.777l0.573,-0.759c0.168,-0.223 0.411,-0.377 0.685,-0.433l1.058,-0.217l-0.171,-0.135c-0.269,-0.212 -0.428,-0.532 -0.436,-0.874l-0.215,-9.687c-0.006,-0.308 0.111,-0.606 0.327,-0.826l0.456,-0.467c0.216,-0.221 0.511,-0.345 0.819,-0.345l4.604,-0c0.297,-0 0.583,0.116 0.796,0.322l0.471,0.456c0.052,0.05 0.099,0.105 0.141,0.164c0,-0 0.598,-0.603 0.598,-0.603c0.215,-0.217 0.508,-0.339 0.813,-0.339l3.456,-0c0.29,-0 0.569,0.11 0.781,0.307l0.671,0.625c0.212,0.198 0.342,0.468 0.362,0.757l0.097,1.372l0.012,-1.612c0.002,-0.302 0.124,-0.591 0.338,-0.804l0.314,-0.312c0.215,-0.213 0.505,-0.333 0.807,-0.333l3.922,-0c0.296,-0 0.58,0.114 0.793,0.319l0.595,0.571c0.064,0.061 0.119,0.128 0.167,0.201c0.053,-0.183 0.151,-0.352 0.287,-0.489l0.261,-0.263c0.216,-0.217 0.508,-0.339 0.813,-0.339l3.753,-0c0.285,-0 0.56,0.106 0.77,0.298l0.779,0.708c0.21,0.191 0.342,0.454 0.369,0.737l0.685,7.125c0.027,0.276 -0.048,0.553 -0.209,0.778l-0.439,0.611c-0.099,0.138 -0.227,0.251 -0.373,0.333Z\"/>"+
"<g fill=\"" + step2 + "\">"+
"<path d=\"M25.339,12.758l4.27,-1.288l0.51,0.376l0.151,18.538l-0.472,0.47l-26.177,-0.229l-0.708,-0.661l-1.183,-15.531l0.573,-0.759l13.773,-2.823l0.456,0.372l0,6.121l-0.375,0.445l-7.615,1.305l-0.621,0.727l-0.063,4.235l0.507,0.344l13.813,-5.706l0.584,-0.572l2.193,-5.024l0.384,-0.34Z\"/>"+
"<path d=\"M24.749,1.409l0.261,-0.263l3.753,-0l0.778,0.707l0.685,7.125l-0.439,0.611l-4.478,1.055l-0.485,-0.381l-0.075,-8.854Z\"/>"+
"<path d=\"M17.859,1.457l0.313,-0.311l3.922,-0l0.595,0.57l0.367,8.813l-0.212,0.278l-4.582,1.041l-0.478,-0.384l0.075,-10.007Z\"/>"+
"<path d=\"M10.737,1.748l0.597,-0.602l3.456,-0l0.671,0.624l0.484,6.84l-0.425,0.551l-4.136,0.769l-0.577,-0.475l-0.07,-7.707Z\"/>"+
"<path d=\"M3.911,1.146l-0.456,0.467l0.215,9.687l0.658,0.52l4.436,-0.951l0.509,-0.651l-0.287,-8.617l-0.471,-0.455l-4.604,-0Z\"/>"+
"</g></svg>";

favicon.href = "data:image/svg+xml;base64," + btoa(ico);
},
Expand Down
6 changes: 3 additions & 3 deletions Protest/Workers/Lifeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ private static void LifelineLoop() {
continue;
}

string os = entry.attributes.TryGetValue("operating system", out Database.Attribute osAttr) ?
osAttr.value.ToLower() :
null;
string os = entry.attributes.TryGetValue("operating system", out Database.Attribute osAttr)
? osAttr.value.ToLower()
: null;

bool wmiOnce = true, snmpOnce = true;

Expand Down

0 comments on commit 05a24cd

Please sign in to comment.