From 5256821b7eb5b2cfb2f06823ae23e25f920a1767 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Mon, 21 Jan 2019 11:09:57 +0800 Subject: [PATCH] 1 --- chapter2/mysite/myapp/templates/myapp/crawl.html | 4 ++-- chapter2/mysite/myapp/templatetags/myapp.py | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/chapter2/mysite/myapp/templates/myapp/crawl.html b/chapter2/mysite/myapp/templates/myapp/crawl.html index afeeaa8..07d28c0 100644 --- a/chapter2/mysite/myapp/templates/myapp/crawl.html +++ b/chapter2/mysite/myapp/templates/myapp/crawl.html @@ -119,8 +119,8 @@
{{platform_info.mem_used}}
+ {{platform_info.mem_total|to_g}} +{{platform_info.mem_used|to_g}}