import{_ as i}from"./DataCard.vue_vue_type_script_setup_true_lang-qu0nWnr7.js";import{_ as p}from"./StringCard.vue_vue_type_script_setup_true_lang-NUhAWFCJ.js";import{_ as f,a as h}from"./StatSection.vue_vue_type_script_setup_true_lang-tSlzODmE.js";import{f as _,K as u,L as d,M as b,N as g,O as m,y as n,P as c,n as s,u as e}from"./vue-CbNcDebW.js";import{n as w,a1 as S}from"./index-Ct76C36l.js";import"./VSheet-BfDvhXPb.js";import"./vuetify-CnSZir_0.js";const x={"data-testid":"card-value",class:"text-subtitle-1 font-weight-bold"},q={"data-testid":"card-unit",class:"font-weight-light text-caption ml-1 text-subtitle-1"},r=_({__name:"UnitCard",props:{active:{type:Boolean},grow:{type:Boolean},title:{},icon:{},orientation:{},color:{},value:{},unit:{}},setup(o){const t=o;return(a,v)=>(d(),u(f,b(g(t)),{default:m(({value:l})=>[n("span",x,c(l),1),n("span",q,c(o.unit),1)]),_:1},16))}}),N=_({__name:"PerformanceStats",setup(o){const{t}=w(),a=S();return(v,l)=>(d(),u(h,{columns:"4"},{default:m(()=>[s(r,{title:e(t)("navbar.side.performance_stats.average_time_queue"),value:e(a).serverState?.average_time_queue??0,unit:"ms",color:"",icon:"mdi-file-clock",class:"grid-col-span-2"},null,8,["title","value"]),s(p,{title:e(t)("navbar.side.performance_stats.queued_io_jobs"),value:e(a).serverState?.queued_io_jobs??0,color:"",icon:"mdi-harddisk",class:"grid-col-span-2"},null,8,["title","value"]),s(i,{title:e(t)("navbar.side.performance_stats.total_buffers_size"),value:e(a).serverState?.total_buffers_size??0,color:"",icon:"mdi-dns",class:"grid-col-span-2"},null,8,["title","value"]),s(i,{title:e(t)("navbar.side.performance_stats.total_queued_size"),value:e(a).serverState?.total_queued_size??0,color:"",icon:"mdi-tray-full",class:"grid-col-span-2"},null,8,["title","value"]),s(r,{title:e(t)("navbar.side.performance_stats.read_cache_hits"),value:e(a).serverState?.read_cache_hits??0,unit:"%",color:"download",icon:"mdi-check-circle"},null,8,["title","value"]),s(r,{title:e(t)("navbar.side.performance_stats.read_cache_overload"),value:e(a).serverState?.read_cache_overload??0,unit:"%",color:"download",icon:"mdi-alert"},null,8,["title","value"]),s(i,{title:e(t)("navbar.side.performance_stats.total_wasted_session"),value:e(a).serverState?.total_wasted_session??0,color:"warning",icon:"mdi-recycle-variant"},null,8,["title","value"]),s(r,{title:e(t)("navbar.side.performance_stats.write_cache_overload"),value:e(a).serverState?.write_cache_overload??0,unit:"%",color:"warning",icon:"mdi-alert"},null,8,["title","value"])]),_:1}))}});export{N as default};
