fix(diagnostics): type error on float conversion in ucode

Replaced non-existent \loat()\ function with unary plus coercion for string to number conversion in service_check.uc.
This commit is contained in:
Dushnilin
2026-08-12 10:50:43 +03:00
parent 2bd2fd7645
commit 3672af46d8
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "fe-app-tachyon",
"version": "1.2.75",
"version": "1.2.76",
"license": "MIT",
"type": "module",
"scripts": {
@@ -35,11 +35,11 @@ function perform_curl_check(domain) {
return { success: false, error: "curl_failed", exit_code: exit_code };
}
let time_namelookup = int(1000 * float(parts[0]));
let time_connect = int(1000 * float(parts[1]));
let time_appconnect = int(1000 * float(parts[2]));
let time_starttransfer = int(1000 * float(parts[3]));
let time_total = int(1000 * float(parts[4]));
let time_namelookup = int(1000 * +(parts[0]));
let time_connect = int(1000 * +(parts[1]));
let time_appconnect = int(1000 * +(parts[2]));
let time_starttransfer = int(1000 * +(parts[3]));
let time_total = int(1000 * +(parts[4]));
let http_code = int(parts[5]);
let remote_ip = parts[6];
+1
View File
@@ -0,0 +1 @@
print(int(1000 * +"0.045"), "\n");