|
|
|
16년 전
|
조회 794
|
|
|
|
16년 전
|
조회 858
|
|
|
|
16년 전
|
조회 859
|
|
|
|
16년 전
|
조회 905
|
|
|
|
16년 전
|
조회 1,623
|
|
|
|
16년 전
|
조회 1,727
|
|
|
|
16년 전
|
조회 1,000
|
|
|
|
16년 전
|
조회 1,012
|
|
|
|
16년 전
|
조회 959
|
|
|
|
16년 전
|
조회 1,208
|
|
|
|
16년 전
|
조회 946
|
|
|
|
16년 전
|
조회 924
|
|
|
|
16년 전
|
조회 1,305
|
|
|
|
16년 전
|
조회 1,003
|
|
|
|
16년 전
|
조회 968
|
|
|
|
16년 전
|
조회 1,560
|
|
|
|
16년 전
|
조회 1,113
|
|
|
|
16년 전
|
조회 983
|
|
|
|
16년 전
|
조회 1,207
|
|
|
|
16년 전
|
조회 1,604
|
댓글 2개
코멘트에 있네요.
simpler function to convert a number in bytes, kilobytes....
<?php
function bytes($a) {
$unim = array("B","KB","MB","GB","TB","PB");
$c = 0;
while ($a>=1024) {
$c++;
$a = $a/1024;
}
return number_format($a,($c ? 2 : 0),",",".")." ".$unim[$c];
}
?>
<?
if($list[$i][wr_hit]>1000000) $list[$i][wr_hit]=round(($list[$i][wr_hit]/1000000),1).m;
else if($list[$i][wr_hit]>1000) $list[$i][wr_hit]=round(($list[$i][wr_hit]/1000),1).k;
?>
<?=$list[$i][wr_hit]?>