This commit is contained in:
CHIEFSOFT\ameye
2024-07-20 16:08:15 -04:00
parent 7f0576db5d
commit f287fbc1cc
+1 -1
View File
@@ -535,7 +535,7 @@ long WrenchJobsInterestStats(CVars in, CVars &out) {
load_db_record(out, "SELECT count(id) AS total_complete FROM members_jobs_contract WHERE client_id = %lu AND status =7", out["client_id"].Long()); //pending jobs
if ( out["total_complete"].Long() > 0 ){
load_db_record(out, "SELECT count(id) AS total_jobs FROM members_jobs_contract WHERE client_id = %lu AND status IN (7,4,5)", out["client_id"].Long()); //pendi
sprintf(buf, "%.02f %", 100* out["total_complete"].Long() / out["total_jobs"].Long());
sprintf(buf, "%.02d %", 100* out["total_complete"].Long() / out["total_jobs"].Long());
logfmt(logINFO, "% *********** Buf ******************** %s", buf);