Spaces:
Runtime error
Runtime error
Yixin Liu
commited on
Commit
·
f1afb35
1
Parent(s):
0fad117
upload
Browse files- demo.ipynb +2 -1
demo.ipynb
CHANGED
|
@@ -127,7 +127,6 @@
|
|
| 127 |
"source": [
|
| 128 |
"update_device_func = \"\"\"\n",
|
| 129 |
"function update_device_idx {\n",
|
| 130 |
-
" sleep $sleeptime\n",
|
| 131 |
" if [ $constrain_total = true ]; then\n",
|
| 132 |
" # check total cpu usage\n",
|
| 133 |
" while true; do\n",
|
|
@@ -296,6 +295,8 @@
|
|
| 296 |
" run_command += \" &\"\n",
|
| 297 |
" run_command += \"\\n\\n\\n\"\n",
|
| 298 |
" spans_with_type_added_device_control.append((run_command, type_))\n",
|
|
|
|
|
|
|
| 299 |
" else:\n",
|
| 300 |
" spans_with_type_added_device_control.append((span, type_))\n",
|
| 301 |
"spans_without_type = [span for span, type_ in spans_with_type_added_device_control]\n",
|
|
|
|
| 127 |
"source": [
|
| 128 |
"update_device_func = \"\"\"\n",
|
| 129 |
"function update_device_idx {\n",
|
|
|
|
| 130 |
" if [ $constrain_total = true ]; then\n",
|
| 131 |
" # check total cpu usage\n",
|
| 132 |
" while true; do\n",
|
|
|
|
| 295 |
" run_command += \" &\"\n",
|
| 296 |
" run_command += \"\\n\\n\\n\"\n",
|
| 297 |
" spans_with_type_added_device_control.append((run_command, type_))\n",
|
| 298 |
+
" sleep_command = \"sleep $sleeptime\\n\\n\"\n",
|
| 299 |
+
" spans_with_type_added_device_control.append((sleep_command, type_))\n",
|
| 300 |
" else:\n",
|
| 301 |
" spans_with_type_added_device_control.append((span, type_))\n",
|
| 302 |
"spans_without_type = [span for span, type_ in spans_with_type_added_device_control]\n",
|