jjb: Use lttng-modules from gerrit when depends-on is set
[lttng-ci.git] / scripts / common / print.sh
index e101a9c24df3c088cd4fa3a3d817a319a08fd4ae..89c904335b6221dc821f782809a07677d52382dd 100755 (executable)
@@ -18,8 +18,13 @@ print_hardware() {
         lscpu
     fi
 
-    print_blue "Memory Details"
-    free
+    if command -v free >/dev/null 2>&1; then
+        print_blue "Memory Details"
+        free -m
+    else
+        print_blue "Memory Details"
+        vmstat free
+    fi
 
     print_blue "Storage Details"
     df -H -T
This page took 0.024053 seconds and 4 git commands to generate.