Comments (1)
From what I see, here we call sysinfo's total_memory()
, which returns the value in bytes and not kylobytes as the documentation in Iced's Information
struct says.
And so, in the example, changing:
ByteSize::kb(information.memory_total).to_string();
to
ByteSize::b(information.memory_total).to_string();
Fix the issue.
I can send a PR later to changing the example and the docs text if that's ok.
from iced.
Related Issues (20)
- feature request - mac system menu support HOT 2
- Error: `palette` overflow evaluating the requirement `&_: std::iter::IntoIterator` HOT 1
- `palette` is ambiguous ambiguous because of multiple potential import sources HOT 1
- New release required to work with iced_aw 0.8.0? HOT 4
- GUI freezes upon interacting with a widget under Wayland HOT 8
- Themer widget doens't apply its theme to Text widgets HOT 2
- Compilation fails on x86_64-pc-windows-msvc. HOT 1
- column macro possibly in conflict with core column macro HOT 5
- svg scaling artifacts
- iced-winit depends on a yanked version of winit HOT 2
- tiny_skia backend panics if you have an Combobox menu with zero search results
- Panic in minimal Application with default settings HOT 4
- TextInput paragraph state cache
- Problem with a custom widget that wraps a `TextInput` HOT 2
- Clock example hangs, when you hold down the left mouse button HOT 3
- Unicode characters not showing up on the Text Input step in the tour HOT 2
- text_editor panic when backspacing with long lines
- tiny-skia crashes on long texts within a `Row` that also contain other elements
- Toast example crahses if two or more toasts are removed at the same time HOT 1
- Crash on raspberry pi when using wgpu feature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iced.