Comments (17)
Effectivement, j'ai le même problème avec ton fichier mtab. Je vais corriger cela dans la prochain release....
Merci pour la remonté du bug !
from glances.
De rien !
Si tu as besoin d'informations supplémentaires, n'hésite pas.
from glances.
Tu peux me renvoyer le résultat des commandes suivantes:
python
import os
os.path.abspath(os.path.join("/home", os.pardir))
os.path.abspath(os.path.join("/home/user/dir1", os.pardir))
Thx !
from glances.
python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import os
os.path.abspath(os.path.join("/home", os.pardir))
'/'
os.path.abspath(os.path.join("/home/user/dir1/ftp", os.pardir))
'/home/user/dir1'
:-)
from glances.
Et en bonus le résultat de:
os.path.dirname(os.path.abspath("/home"))
os.path.dirname(os.path.abspath("/home/user/dir1/ftp"))
from glances.
python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import os
os.path.dirname(os.path.abspath("/home"))
'/'
os.path.dirname(os.path.abspath("/home/user/dir1/ftp"))
'/home/user/dir1'
from glances.
Une dernière série pour la route...
os.path.ismount("/")
os.path.ismount("/tmp")
os.path.ismount("/home")
os.path.ismount("/home/user/dir1")
from glances.
python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import os
os.path.ismount("/")
True
os.path.ismount("/tmp")
False
os.path.ismount("/home")
True
os.path.ismount("/home/user/dir1")
False
from glances.
Strange... Il voit bien /home comme un point de montage. Je ne comprend pas qu'il ne te l'affiche pas...
from glances.
Peux tu récupérer le script Python de test suivant: http://sam.nicolargo.com/owncloud/apps/files_sharing/get.php?token=f9ea4ef61b59f775848f6d23476cc1696bb1eb7b
Le lancer puis faire un copier/coller du résultat ?
from glances.
./glances_test.py
[{'used_blocks': 931414L, 'mnt_point': '/', 'total_blocks': 3047472L, 'used': 3815071744L, 'avail_blocks': 1962471L, 'device_name': 'rootfs', 'avail': 8038281216L, 'total_inodes': 770048L, 'free_inodes': 653900L, 'fs_type': 'rootfs', 'avail_inodes': 653900L, 'used_inodes': 116148L, 'block_size': 4096L, 'free_blocks': 2116058L, 'io_size': 4096L, 'size': 12482445312L}]
from glances.
Cela semble venir de la librairie libstatgrab...
Je viens de forcer l'utilisation de ma routine maison dans le script suivant: http://sam.nicolargo.com/owncloud/apps/files_sharing/get.php?token=e6af3ff874a5bb332e109f6102b4e6c3c4ead7be
Tu peux tester et me faire un retour ?
Merci !
from glances.
Ah, en effet !
./glances_test.py
[{'mnt_point': '/', 'used': 3815186432.0, 'device_name': 'rootfs', 'avail': 8667258880.0, 'fs_type': 'rootfs', 'size': 12482445312.0}, {'mnt_point': '/', 'used': 3815186432.0, 'device_name': '/dev/root', 'avail': 8667258880.0, 'fs_type': 'ext4', 'size': 12482445312.0}, {'mnt_point': '/dev', 'used': 4096.0, 'device_name': '/dev', 'avail': 1045278720.0, 'fs_type': 'devtmpfs', 'size': 1045282816.0}, {'mnt_point': '/home', 'used': 412799315968.0, 'device_name': '/dev/sda2', 'avail': 564956393472.0, 'fs_type': 'ext4', 'size': 977755709440.0}, {'mnt_point': '/home', 'used': 412799315968.0, 'device_name': '/dev/sda2', 'avail': 564956393472.0, 'fs_type': 'ext4', 'size': 977755709440.0}]
from glances.
Bon je vais faire la modification dans la version 1.3.4. Pour ne pas attendre de ton coté, il suffit de remplacer le bloc de code suivant (ligne 172):
try:
self.fs = statgrab.sg_get_fs_stats()
except:
# Replace the bugged self.fs = statgrab.sg_get_fs_stats()
self.fs = self.glancesgrabfs.get()
par
try:
# Replace the bugged self.fs = statgrab.sg_get_fs_stats()
self.fs = self.glancesgrabfs.get()
except:
self.fs = {}
A plus !
from glances.
La version 1.3.4 corrige le bug (entre autre...): https://github.com/downloads/nicolargo/glances/glances-1.3.4.tar.gz
A+
from glances.
Impeccable ! ;-)
from glances.
De nada :)
Bonnes fêtes de fin d'année !
from glances.
Related Issues (20)
- Crach when ENTER key is pressed in the Alpine minimal image HOT 1
- Crash when reading timezone for generating alert HOT 2
- pip glances export does't have docker resource HOT 1
- Refactor the QuickLook plugin to add Load HOT 1
- zsh: command not found: glances
- ModuleNotFoundError when using `--export influxdb2` in with latest-full docker image HOT 5
- On Linux OS, add guest CPU stat HOT 1
- Unable to Autostart glances using the systemd instructions [SOLVED] HOT 1
- ubuntu-latest-full with docker stat support
- If FastAPI server failed to start, Glances do not return a critical error
- Use glances network alias if available HOT 1
- url_prefix does not work on develop HOT 2
- Release 3.4.0.2's Alpine docker base out of date; Release 3.4.0.2 on newer Alpine 3.19.1 and 3.18.6 tags
- .gitignore in package HOT 1
- Ability to use glances --export influxdb in web interface mode HOT 1
- Glances silently fails on Windows 11 HOT 5
- Glances won't start on Windows 10 HOT 1
- NPU Monitoring HOT 1
- Custom system header information HOT 3
- Devel branch: Alpine Docker Image build failed on Alpine HOT 2
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 glances.