mirror of
https://github.com/Xevion/vastly.git
synced 2025-12-06 01:16:50 -06:00
redis, latency processor work, minor main.go cleanup, remove Greet, ScoredOffer.Latency
This commit is contained in:
@@ -4,7 +4,7 @@ import { cn } from "@src/utils";
|
||||
import { Tooltip } from "react-tooltip";
|
||||
|
||||
export default function Offer({
|
||||
offer: { Offer: offer, Score: score, Reasons: reasons },
|
||||
offer: { Offer: offer, Score: score, Reasons: reasons, Latency: latency },
|
||||
}: {
|
||||
offer: api.ScoredOffer;
|
||||
}) {
|
||||
@@ -25,10 +25,14 @@ export default function Offer({
|
||||
<span className="text-4xl font-bold pr-2">
|
||||
{score >= 10 ? Math.round(score) : score.toFixed(1)}
|
||||
</span>
|
||||
<span className="relative text-xl top-2.5">
|
||||
<span className="relative text-xl top-2.5 pr-2">
|
||||
{offer.num_gpus}x {offer.gpu_name}{" "}
|
||||
<span className="text-sm">{mb_to_gb(offer.gpu_ram)} GB</span>
|
||||
</span>
|
||||
<span className="relative top-3 text-base">
|
||||
<span>{latency ?? "?"}</span>
|
||||
<span className="text-xs select-none">ms</span>
|
||||
</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>${offer.search.totalHour.toFixed(2)}/hr</span>
|
||||
|
||||
2
frontend/wailsjs/go/main/App.d.ts
vendored
2
frontend/wailsjs/go/main/App.d.ts
vendored
@@ -2,6 +2,4 @@
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
import {api} from '../models';
|
||||
|
||||
export function Greet(arg1:string):Promise<string>;
|
||||
|
||||
export function Search():Promise<Array<api.ScoredOffer>>;
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
||||
// This file is automatically generated. DO NOT EDIT
|
||||
|
||||
export function Greet(arg1) {
|
||||
return window['go']['main']['App']['Greet'](arg1);
|
||||
}
|
||||
|
||||
export function Search() {
|
||||
return window['go']['main']['App']['Search']();
|
||||
}
|
||||
|
||||
@@ -198,6 +198,7 @@ export namespace api {
|
||||
Offer: Offer;
|
||||
Score: number;
|
||||
Reasons: ScoreReason[];
|
||||
Latency?: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ScoredOffer(source);
|
||||
@@ -208,6 +209,7 @@ export namespace api {
|
||||
this.Offer = this.convertValues(source["Offer"], Offer);
|
||||
this.Score = source["Score"];
|
||||
this.Reasons = this.convertValues(source["Reasons"], ScoreReason);
|
||||
this.Latency = source["Latency"];
|
||||
}
|
||||
|
||||
convertValues(a: any, classs: any, asMap: boolean = false): any {
|
||||
|
||||
Reference in New Issue
Block a user