summaryrefslogtreecommitdiff
path: root/xdcc.pl
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-29 10:41:02 -0400
committerJules Laplace <jules@okfoc.us>2015-04-29 10:41:02 -0400
commitc695449b17b13e7711da8a81ab70bc9a147d8d61 (patch)
tree29d938790e8d5a07e36f64c75848efed300bb8fb /xdcc.pl
parentf586071a6f2627972f7d3ed941232f981b41973b (diff)
filthy habitsHEADmaster
Diffstat (limited to 'xdcc.pl')
-rw-r--r--xdcc.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/xdcc.pl b/xdcc.pl
index afb289c..9448ebd 100644
--- a/xdcc.pl
+++ b/xdcc.pl
@@ -329,9 +329,9 @@ sub xdcc_get_info {
my $ymd = sprintf "%d-%s-%d %d:%02d", $d, $months[$n], 1900+$y, $h, $m;
my $bytes;
- if ($size < 1024) { $bytes = $size + " b." }
- elsif ($size < 1024*1024) { $bytes = int($size/1024) + " kb." }
- elsif ($size < 1024*1024*1024) { $bytes = sprintf("%0.1d",int((10*$size)/(1024*1024))) + " kb." }
+ if ($size < 1024) { $bytes = $size . " b." }
+ elsif ($size < 1024*1024) { $bytes = int($size/1024) . " kb." }
+ elsif ($size < 1024*1024*1024) { $bytes = sprintf("%0.1d",int((10*$size)/(1024*1024))) . " kb." }
return {
id => $id+1,