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