xmrig: fix [Rig] check using [self.name] value

In XMRig Advanced the color/checkmark code was being given [self.name]
instead of [self.rig] which caused them to be linked, e.g: you clear
"Name" and [Rig] goes red instead.
This commit is contained in:
hinto-janaiyo 2022-12-14 17:46:44 -05:00
parent 631e4cc2db
commit 035e3e782a
No known key found for this signature in database
GPG key ID: B1C5A64B80691E45

View file

@ -209,7 +209,7 @@ impl Xmrig {
if self.rig.is_empty() { if self.rig.is_empty() {
text = format!(" Rig [ {}/30 ]", len); text = format!(" Rig [ {}/30 ]", len);
color = LIGHT_GRAY; color = LIGHT_GRAY;
} else if Regex::is_match(&regex.name, &self.name) { } else if Regex::is_match(&regex.name, &self.rig) {
text = format!(" Rig [ {}/30 ]✔", len); text = format!(" Rig [ {}/30 ]✔", len);
color = GREEN; color = GREEN;
} else { } else {