Code Monkey home page Code Monkey logo

Comments (12)

whuanle avatar whuanle commented on August 23, 2024

用的是 net7 还是之前的版本

from czgl.systeminfo.

whuanle avatar whuanle commented on August 23, 2024

你的 Linux 版本是啥,内核版本是啥

from czgl.systeminfo.

whuanle avatar whuanle commented on August 23, 2024

你的 Linux 版本是啥,内核版本是啥

from czgl.systeminfo.

huangchangxu avatar huangchangxu commented on August 23, 2024

net6 引用的CZGL.SystemInfo最新版本。
系统信息如截图:
image

from czgl.systeminfo.

LeZi9916 avatar LeZi9916 commented on August 23, 2024

net6 引用的CZGL.SystemInfo最新版本。 系统信息如截图: image

这个问题好像在net6才有,net7并没有这个问题

from czgl.systeminfo.

cfoan avatar cfoan commented on August 23, 2024

今天发现的linux内存占用率有问题,用的net7,CZGL.SystemInfo版本2.0.0.0。
获取的内存数据如下:

"TotalPhysicalMemory":959_877_120
"AvailablePhysicalMemory":83_779_584
"UsedPhysicalMemory":876_097_536
"UsedPercentage":0

UsedPercentage应该是91多,后查看代码大概是这里不对
CZGL.SystemInfo.LinuxMemory.GetMemory里面
image

from czgl.systeminfo.

whuanle avatar whuanle commented on August 23, 2024

@cfoan
除了百分比外,其它数值应该没问题吧

from czgl.systeminfo.

whuanle avatar whuanle commented on August 23, 2024

image

from czgl.systeminfo.

whuanle avatar whuanle commented on August 23, 2024

@cfoan @huangchangxu @XiaoSong0919
问题修复了。
另外关于 6.0,7.0 的问题,做了处理,7.0 支持 Native AOT,6.0 使用旧方法。

from czgl.systeminfo.

Hyalei avatar Hyalei commented on August 23, 2024

@cfoan @huangchangxu @XiaoSong0919 问题修复了。 另外关于 6.0,7.0 的问题,做了处理,7.0 支持 Native AOT,6.0 使用旧方法。
我今天使用Linux测试的内存信息的代码,发现报错仍然存在,以下是我的代码片段和系统信息,我是用的是dotnet6.0

代码片段

NuGet包版本

获取Linux内存异常

linux内核信息

from czgl.systeminfo.

whuanle avatar whuanle commented on August 23, 2024

from czgl.systeminfo.

Hyalei avatar Hyalei commented on August 23, 2024

from czgl.systeminfo.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.