function disky(){
if(number!=1){
window.resizeTo(wid, (number*33)+46);
}else{
window.resizeTo(wid, (number*33)+47);
}
line = widget.system("/bin/df -l -k", null).outputString;
n=line.split("\n");
j=0;
listline=new Array();
max=0;
for(i=1;i<n.length-1;i++){
listline[j] = n[i].split(" ");
j++;
}
clistline=new Array();
names={};
capacities={};
percents={};
diskets={};
if(widget.preferenceForKey("indicator")=="d" && timist!=50){
bill = widget.system("/usr/sbin/iostat -d -c 2", tracker);
}
for(i in listline){
j=0;
clistline[i]=new Array();
for(l in listline[i]){
if(listline[i][l]!==" " && listline[i][l]!==""){
clistline[i][j]=listline[i][l];
j++;
}
}
names[i]="";
for(j=5;j<clistline[i].length-1;j++)
names[i]=names[i]+clistline[i][j].replace("/Volumes/","")+' ';
names[i]=names[i]+clistline[i][j].replace("/Volumes/","");
if(names[i]=="/")
names[i]='/ <span style="font-size:10px">'+getLocalizedString('root')+'</span>';
capacities[i]=clistline[i][1];
if(capacities[i]/capacities[max]>1){
max=i;
}
if(widget.preferenceForKey("numer")=="d")
avalables[i]=Math.floor(100*clistline[i][3]/(1024*1024))/100;
percents[i]=clistline[i][4].replace("%","");
if(i==0){
diskets[0]=parseInt(clistline[i][0].replace("/dev/disk","").split("s")[0]);
}else if(clistline[i][0].replace("/dev/disk","").split("s")[0]==clistline[i-1][0].replace("/dev/disk","").split("s")[0]){
diskets[i]=diskets[i-1];
}else{
diskets[i]=diskets[i-1]+1;
}
}
}