Conky wyświetla złe rozmiary partycji


(Adrian 1987) #1

Witam. Zauważyłem, że Conky wyświetla inne rozmiary partycji niż są w rzeczywistości, np: partycja "Moje" w Nautilusie ma 113,7GB a Conky wyświetla 104 GB.

Mój conkyrc:

# Use Xft?

use_xft yes

xftfont DejaVu Sans:size=8

xftalpha 0.8

text_buffer_size 2048


# Update interval in seconds

update_interval 1


# This is the number of times Conky will update before quitting.

# Set to zero to run forever.

total_run_times 0


# Create own window instead of using desktop (required in nautilus)

own_window yes

own_window_transparent yes

own_window_type override

#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager


# Use double buffering (reduces flicker, may not work for everyone)

double_buffer yes


# Minimum size of text area

minimum_size 180 0

#maximum_width 200


# Draw shades?

draw_shades no


# Draw outlines?

draw_outline no


# Draw borders around text

draw_borders no


# Stippled borders?

stippled_borders 0


# border margins

border_margin 5


# border width

border_width 1


# Default colors and also border colors

default_color white

#default_shade_color white

#default_outline_color white

own_window_colour white


# Text alignment, other possible values are commented

#alignment top_left

alignment top_right

#alignment bottom_left

#alignment bottom_right


# Gap between borders of screen and text

# same thing as passing -x at command line

gap_x 35

gap_y 50


# Subtract file system buffers from used memory?

no_buffers yes


# set to yes if you want all text to be in uppercase

uppercase no


# number of cpu samples to average

# set to 1 to disable averaging

cpu_avg_samples 2


# number of net samples to average

# set to 1 to disable averaging

net_avg_samples 2


# Force UTF8? note that UTF8 support required XFT

override_utf8_locale yes


# Add spaces to keep things from moving about? This only affects certain objects.

use_spacer none


TEXT

DATA ${hr 2}

${alignc 47}${font Radio Space:size=40}${time %H:%M}${font}

${voffset 4}${alignc}${font Aerial:style=Bold:pixelsize=10}${time %d %A}

${alignc}${execi 60 date +"%B %Y" | tr "[:lower:]" "[:upper:]"}


SYSTEM ${hr 2}

${font StyleBats:size=16}q${font} Uptime: ${alignr}${uptime}

${font StyleBats:size=16}A${font} CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}

${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}

${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}


PARTYCJE ${hr 2}

${voffset 6}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:

${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}

${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:

${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}

${font Pie charts for maps:size=14}7${font} ${voffset -5}Moje:

${voffset 4}${fs_free /media/Moje}/${fs_size /media/Moje} ${alignr}${fs_bar 8,60 /media/Moje}

${font Pie charts for maps:size=14}7${font} ${voffset -5}Windows7:

${voffset 4}${fs_free /media/Windows7}/${fs_size /media/Windows7} ${alignr}${fs_bar 8,60 /media/Windows7}


INTERNET ${hr 2}

${if_existing /proc/net/route eth1}

${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}

${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}

${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}

${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}

${else}${if_existing /proc/net/route eth1}

${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 F57900 FCAF3E}

${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}

${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}

${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}

${endif}${else}

(Kaka') #2

Z tego co pamiętam, conky podaje rozmiar w GiB/MiB, a nie w GB/MB - poczytaj na wikipedii o tych jednostkach.